Skip to content

Commit

Permalink
rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
GameTec-live committed Aug 29, 2023
1 parent 61780d8 commit 076cab5
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 4 deletions.
18 changes: 18 additions & 0 deletions git-.SRCINFO
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions PKGBUILD → git-PKGBUILD
Original file line number Diff line number Diff line change
@@ -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')
Expand All @@ -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)"
}

Expand All @@ -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"
}
ln -s "/opt/$pkgname/chameleonultragui" "$pkgdir/usr/bin/chameleonultragui"
}
36 changes: 36 additions & 0 deletions release-PKGBUILD
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 076cab5

Please sign in to comment.