add PKGBUILD

This commit is contained in:
Егор
2025-06-16 07:11:40 +00:00
committed by GitHub
parent a0fc3bb20b
commit 6761dfa993
3 changed files with 40 additions and 5 deletions

15
.vscode/settings.json vendored
View File

@@ -1,11 +1,18 @@
{
"cSpell.words": [
"autobuild",
"тулчейн",
"тулчейна",
"msys",
"choco",
"dpkg",
"Egor",
"iscc",
"kolibrios",
"Egor"
"libisl",
"makepkg",
"msys",
"pacman",
"PKGBUILD",
"тулчейн",
"тулчейна"
],
"cSpell.ignorePaths": [
"vscode-extension",

View File

@@ -2,6 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.2)
project(
KolibriOS-gcc-Toolchain-installer
VERSION 0.1.7
DESCRIPTION "Installer of gcc toolchain for KolibriOS"
)
@@ -87,7 +88,6 @@ add_custom_target(
${CMAKE_CURRENT_BINARY_DIR}/package/
)
add_custom_target(
deb
COMMAND cp -f ${CMAKE_CURRENT_BINARY_DIR}/libisl.so.10.2.2 ${CMAKE_CURRENT_BINARY_DIR}/package/usr/lib/x86_64-linux-gnu/libisl.so.10.2.2
@@ -105,6 +105,15 @@ add_custom_target(
configureDebPackage
)
add_custom_target(
pkg
COMMAND makepkg
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Build pacman package"
SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/install.sh
)
add_custom_target(
Installer
COMMAND 7z x ${CMAKE_CURRENT_BINARY_DIR}/kos32-toolchain-win.7z -o ${CMAKE_CURRENT_BINARY_DIR}

19
PKGBUILD Normal file
View File

@@ -0,0 +1,19 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Your Name <youremail@domain.com>
pkgname="kos32-gcc"
pkgver="0.1.7"
pkgrel="1"
pkgdesc="KolibriOS gcc toolchain installer"
arch=("x86_64")
url="https://github.com/Egor00f/kolibrios-gcc-toolchain/"
license=('MIT')
source=("install.sh")
md5sums=("SKIP")
package() {
${srcdir}/install.sh
}