From 076cab58eb51404b272d3cb99d0144708769b5ae Mon Sep 17 00:00:00 2001 From: GameTec_live Date: Tue, 29 Aug 2023 18:47:36 +0200 Subject: [PATCH] rename files --- git-.SRCINFO | 18 ++++++++++++++++++ PKGBUILD => git-PKGBUILD | 8 ++++---- release-PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 git-.SRCINFO rename PKGBUILD => git-PKGBUILD (91%) create mode 100644 release-PKGBUILD diff --git a/git-.SRCINFO b/git-.SRCINFO new file mode 100644 index 00000000..766fd8ba --- /dev/null +++ b/git-.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = chameleonultragui-git + pkgdesc = PKGBUILD for the Chameleon Ultra GUI + pkgver = r168.61780d8 + pkgrel = 1 + url = https://github.com/GameTec-live/ChameleonUltraGUI + arch = x86_64 + makedepends = flutter + makedepends = clang + makedepends = cmake + makedepends = ninja + makedepends = pkgconf + makedepends = xz + depends = gtk3 + depends = zenity + source = git+https://github.com/GameTec-live/ChameleonUltraGUI.git#branch=main + sha256sums = SKIP + +pkgname = chameleonultragui-git diff --git a/PKGBUILD b/git-PKGBUILD similarity index 91% rename from PKGBUILD rename to git-PKGBUILD index 1b3d8095..ab85f4a1 100644 --- a/PKGBUILD +++ b/git-PKGBUILD @@ -1,5 +1,5 @@ pkgname=chameleonultragui-git -pkgver=0.0.0 +pkgver=r168.61780d8 pkgrel=1 pkgdesc='PKGBUILD for the Chameleon Ultra GUI' arch=('x86_64') @@ -10,7 +10,7 @@ source=("git+https://github.com/GameTec-live/ChameleonUltraGUI.git#branch=main") sha256sums=('SKIP') pkgver() { - cd "$pkgname" + cd "ChameleonUltraGUI" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" } @@ -37,5 +37,5 @@ package() { # copy the bundled output to /opt cp -rdp --no-preserve=ownership . "$pkgdir/opt/$pkgname/" # symlink to /usr/bin so the app can be found in PATH - ln -s "/opt/$pkgname/chameleonultragui" "$pkgdir/usr/bin/$pkgname" -} \ No newline at end of file + ln -s "/opt/$pkgname/chameleonultragui" "$pkgdir/usr/bin/chameleonultragui" +} diff --git a/release-PKGBUILD b/release-PKGBUILD new file mode 100644 index 00000000..d0abfc25 --- /dev/null +++ b/release-PKGBUILD @@ -0,0 +1,36 @@ +pkgname=chameleonultragui +pkgver=0.0.1 +pkgrel=#!RUNNUMBER#! +pkgdesc='PKGBUILD for the Chameleon Ultra GUI' +arch=('x86_64') +url="https://github.com/GameTec-live/ChameleonUltraGUI" +depends=('gtk3' 'zenity') +makedepends=('flutter' 'clang' 'cmake' 'ninja' 'pkgconf' 'xz') +source=("git+https://github.com/GameTec-live/ChameleonUltraGUI.git#branch=main") +sha256sums=('SKIP') + +prepare(){ + cd "ChameleonUltraGUI/chameleonultragui" + flutter --no-version-check config --no-analytics + flutter --no-version-check config --enable-linux-desktop + flutter --no-version-check pub get +} + +build() { + cd "ChameleonUltraGUI/chameleonultragui" + flutter --no-version-check build linux --release +} + +package() { + cd "ChameleonUltraGUI/chameleonultragui/build/linux/x64/release/bundle/" + # create the target folders + install -dm 755 "$pkgdir/opt/$pkgname" "$pkgdir/usr/bin/" + install -Dm644 "../../../../../aur/chameleonultragui.desktop" \ + "${pkgdir}/usr/share/applications/chameleonultragui.desktop" + install -Dm644 "../../../../../aur/chameleonultragui.png" \ + "${pkgdir}/usr/share/pixmaps/chameleonultragui.png" + # copy the bundled output to /opt + cp -rdp --no-preserve=ownership . "$pkgdir/opt/$pkgname/" + # symlink to /usr/bin so the app can be found in PATH + ln -s "/opt/$pkgname/chameleonultragui" "$pkgdir/usr/bin/chameleonultragui" +}