feat: add PKGBUILD for Arch Linux native installation and desktop integration
This commit is contained in:
60
PKGBUILD
Normal file
60
PKGBUILD
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
# Maintainer: Nils Pukropp <nils@narl.io>
|
||||||
|
pkgname=ultimate-ban-tracker
|
||||||
|
pkgver=1.3.3
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Professional Steam Account Manager & Ban Tracker"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://narl.io"
|
||||||
|
license=('custom:Personal Use and Non-Commercial')
|
||||||
|
depends=('electron' 'nodejs' 'npm')
|
||||||
|
makedepends=('imagemagick')
|
||||||
|
source=("ultimate-ban-tracker-${pkgver}.tar.gz::https://git.narl.io/nvrl/ultimate-ban-tracker/archive/v${pkgver}.tar.gz")
|
||||||
|
sha256sums=('SKIP') # Users should verify against the Gitea release
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${srcdir}/ultimate-ban-tracker"
|
||||||
|
|
||||||
|
# Build frontend
|
||||||
|
cd frontend
|
||||||
|
npm install
|
||||||
|
|
||||||
|
# Ensure icon is converted for desktop entry
|
||||||
|
convert -background none -size 512x512 assets-build/icon.svg assets-build/icon.png
|
||||||
|
|
||||||
|
# Build production
|
||||||
|
npm run electron:build -- --linux
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/ultimate-ban-tracker/frontend"
|
||||||
|
|
||||||
|
# Create directory structure
|
||||||
|
install -d "${pkgdir}/usr/lib/${pkgname}"
|
||||||
|
install -d "${pkgdir}/usr/bin"
|
||||||
|
install -d "${pkgdir}/usr/share/applications"
|
||||||
|
install -d "${pkgdir}/usr/share/pixmaps"
|
||||||
|
|
||||||
|
# Copy the unpacked linux build
|
||||||
|
cp -r release/linux-unpacked/* "${pkgdir}/usr/lib/${pkgname}/"
|
||||||
|
|
||||||
|
# Create symlink to binary
|
||||||
|
ln -s "/usr/lib/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
|
||||||
|
|
||||||
|
# Install Desktop Entry
|
||||||
|
cat > "${pkgdir}/usr/share/applications/${pkgname}.desktop" <<EOF
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Ultimate Ban Tracker
|
||||||
|
Exec=/usr/bin/${pkgname}
|
||||||
|
Icon=${pkgname}
|
||||||
|
Type=Application
|
||||||
|
Categories=Game;Utility;
|
||||||
|
Terminal=false
|
||||||
|
Comment=Professional Steam Account Manager & Ban Tracker
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Install Icon
|
||||||
|
install -m644 "assets-build/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
|
||||||
|
|
||||||
|
# Install License
|
||||||
|
install -D -m644 "../LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user