forked from GameTec-live/ChameleonUltraGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release-PKGBUILD
36 lines (33 loc) · 1.33 KB
/
release-PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
pkgname=chameleonultragui
pkgver=0.0.1
pkgrel=1
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"
}