Skip to content

Commit 61780d8

Browse files
authored
Fix PKGBUILD (GameTec-live#173)
* fix-pkgbuild * finish fix of pkgbuild
1 parent b7fbe0c commit 61780d8

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

PKGBUILD

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pkgname=chameleonultragui
1+
pkgname=chameleonultragui-git
22
pkgver=0.0.0
33
pkgrel=1
44
pkgdesc='PKGBUILD for the Chameleon Ultra GUI'
@@ -9,6 +9,11 @@ makedepends=('flutter' 'clang' 'cmake' 'ninja' 'pkgconf' 'xz')
99
source=("git+https://github.com/GameTec-live/ChameleonUltraGUI.git#branch=main")
1010
sha256sums=('SKIP')
1111

12+
pkgver() {
13+
cd "$pkgname"
14+
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
15+
}
16+
1217
prepare(){
1318
cd "ChameleonUltraGUI/chameleonultragui"
1419
flutter --no-version-check config --no-analytics
@@ -25,8 +30,12 @@ package() {
2530
cd "ChameleonUltraGUI/chameleonultragui/build/linux/x64/release/bundle/"
2631
# create the target folders
2732
install -dm 755 "$pkgdir/opt/$pkgname" "$pkgdir/usr/bin/"
33+
install -Dm644 "../../../../../aur/chameleonultragui.desktop" \
34+
"${pkgdir}/usr/share/applications/chameleonultragui.desktop"
35+
install -Dm644 "../../../../../aur/chameleonultragui.png" \
36+
"${pkgdir}/usr/share/pixmaps/chameleonultragui.png"
2837
# copy the bundled output to /opt
2938
cp -rdp --no-preserve=ownership . "$pkgdir/opt/$pkgname/"
3039
# symlink to /usr/bin so the app can be found in PATH
31-
ln -s "/opt/$pkgname/flutterapp" "$pkgdir/usr/bin/$pkgname"
40+
ln -s "/opt/$pkgname/chameleonultragui" "$pkgdir/usr/bin/$pkgname"
3241
}

chameleonultragui/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ app.*.map.json
5252
android/fastlane/report.xml
5353
**/upload-keystore.jks
5454
**/AuthKey*.p8
55+
**/cert_key
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Name=Chameleon Ultra GUI
4+
GenericName=Chameleon Ultra GUI
5+
Comment=GUI app for Chameleon Ultra and Lite
6+
Terminal=false
7+
Type=Application
8+
Categories=Utility
9+
Exec=chameleonultragui %u
10+
TryExec=chameleonultragui
11+
Icon=chameleonultragui
12+
Keywords=Flutter;share;files;chameleon;chameleonultra;chameleonlite;
883 KB
Loading

0 commit comments

Comments
 (0)