Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aur pkgbuild working #173

Merged
merged 2 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pkgname=chameleonultragui
pkgname=chameleonultragui-git
pkgver=0.0.0
pkgrel=1
pkgdesc='PKGBUILD for the Chameleon Ultra GUI'
Expand All @@ -9,6 +9,11 @@ makedepends=('flutter' 'clang' 'cmake' 'ninja' 'pkgconf' 'xz')
source=("git+https://github.com/GameTec-live/ChameleonUltraGUI.git#branch=main")
sha256sums=('SKIP')

pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

prepare(){
cd "ChameleonUltraGUI/chameleonultragui"
flutter --no-version-check config --no-analytics
Expand All @@ -25,8 +30,12 @@ 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/flutterapp" "$pkgdir/usr/bin/$pkgname"
ln -s "/opt/$pkgname/chameleonultragui" "$pkgdir/usr/bin/$pkgname"
}
1 change: 1 addition & 0 deletions chameleonultragui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ app.*.map.json
android/fastlane/report.xml
**/upload-keystore.jks
**/AuthKey*.p8
**/cert_key
12 changes: 12 additions & 0 deletions chameleonultragui/aur/chameleonultragui.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
Version=1.0
Name=Chameleon Ultra GUI
GenericName=Chameleon Ultra GUI
Comment=GUI app for Chameleon Ultra and Lite
Terminal=false
Type=Application
Categories=Utility
Exec=chameleonultragui %u
TryExec=chameleonultragui
Icon=chameleonultragui
Keywords=Flutter;share;files;chameleon;chameleonultra;chameleonlite;
Binary file added chameleonultragui/aur/chameleonultragui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.