From 6761dfa993f4789742886382302788ec4bc79449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B3=D0=BE=D1=80?= <148970641+Egor00f@users.noreply.github.com> Date: Mon, 16 Jun 2025 07:11:40 +0000 Subject: [PATCH] add PKGBUILD --- .vscode/settings.json | 15 +++++++++++---- CMakeLists.txt | 11 ++++++++++- PKGBUILD | 19 +++++++++++++++++++ 3 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 PKGBUILD diff --git a/.vscode/settings.json b/.vscode/settings.json index b5ed4a7..cadc691 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,11 +1,18 @@ { "cSpell.words": [ "autobuild", - "тулчейн", - "тулчейна", - "msys", + "choco", + "dpkg", + "Egor", + "iscc", "kolibrios", - "Egor" + "libisl", + "makepkg", + "msys", + "pacman", + "PKGBUILD", + "тулчейн", + "тулчейна" ], "cSpell.ignorePaths": [ "vscode-extension", diff --git a/CMakeLists.txt b/CMakeLists.txt index df7b218..e65aede 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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} diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3a23b82 --- /dev/null +++ b/PKGBUILD @@ -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 +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 +}