2
0
mirror of https://github.com/Revertron/Alfis synced 2024-11-17 03:25:43 +00:00
Alfis/contrib/PKGBUILD
2021-04-05 21:21:52 +05:00

41 lines
1.9 KiB
Bash

pkgname=alfis
pkgver=$(sh ./semver/version.sh --bare)
pkgrel=1
pkgdesc="Alternative Free Identity System"
arch=('x86_64' 'aarch64')
license=('AGPL3')
url='https://github.com/Revertron/Alfis'
depends=('webkit2gtk' 'gtk3')
makedepends=('cargo' 'rust' 'atk' 'pango')
backup=("etc/$pkgname.conf")
build() {
cd "$startdir/.."
cargo build --release --all-features --target-dir=target
}
package() {
cd "$startdir/.."
install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm 644 "contrib/systemd/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
install -Dm 644 "contrib/systemd/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dm 644 "contrib/systemd/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
install -Dm 644 "contrib/org.alfis.Alfis.desktop" "$pkgdir/usr/share/applications/org.alfis.Alfis.desktop"
install -Dm 644 "img/logo/16px.png" "$pkgdir/usr/share/icons/hicolor/16x16/apps/alfis.png"
install -Dm 644 "img/logo/22px.png" "$pkgdir/usr/share/icons/hicolor/22x22/apps/alfis.png"
install -Dm 644 "img/logo/24px.png" "$pkgdir/usr/share/icons/hicolor/24x24/apps/alfis.png"
install -Dm 644 "img/logo/32px.png" "$pkgdir/usr/share/icons/hicolor/32x32/apps/alfis.png"
install -Dm 644 "img/logo/36px.png" "$pkgdir/usr/share/icons/hicolor/36x36/apps/alfis.png"
install -Dm 644 "img/logo/48px.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/alfis.png"
install -Dm 644 "img/logo/64px.png" "$pkgdir/usr/share/icons/hicolor/64x64/apps/alfis.png"
install -Dm 644 "img/logo/72px.png" "$pkgdir/usr/share/icons/hicolor/72x72/apps/alfis.png"
install -Dm 644 "img/logo/96px.png" "$pkgdir/usr/share/icons/hicolor/96x96/apps/alfis.png"
install -Dm 644 "img/logo/128px.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/alfis.png"
install -Dm 644 "img/logo/192px.png" "$pkgdir/usr/share/icons/hicolor/192x192/apps/alfis.png"
}