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

41 lines
1.9 KiB
Bash
Raw Normal View History

2021-04-03 12:44:49 +00:00
pkgname=alfis
pkgver=$(sh ./semver/version.sh --bare)
2021-04-03 12:44:49 +00:00
pkgrel=1
pkgdesc="Alternative Free Identity System"
2021-04-04 12:41:25 +00:00
arch=('x86_64' 'aarch64')
2021-04-03 12:44:49 +00:00
license=('AGPL3')
url='https://github.com/Revertron/Alfis'
depends=('webkit2gtk' 'gtk3')
makedepends=('cargo' 'rust' 'atk' 'pango')
2021-04-03 12:50:27 +00:00
backup=("etc/$pkgname.conf")
build() {
cd "$startdir/.."
cargo build --release --all-features --target-dir=target
}
2021-04-03 12:44:49 +00:00
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"
2021-04-05 16:21:52 +00:00
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"
2021-04-03 12:44:49 +00:00
}