Merge pull request #22 from nxshock/master

PKGBUILD improvements
This commit is contained in:
Revertron
2021-04-04 14:58:01 +02:00
committed by GitHub
+17 -17
View File
@@ -2,27 +2,27 @@ pkgname=alfis
pkgver=0.3.12 pkgver=0.3.12
pkgrel=1 pkgrel=1
pkgdesc="Alternative Free Identity System" pkgdesc="Alternative Free Identity System"
arch=('x86_64') arch=('x86_64' 'aarch64')
license=('AGPL3') license=('AGPL3')
url='https://github.com/Revertron/Alfis' url='https://github.com/Revertron/Alfis'
depends=('webkit2gtk') depends=('webkit2gtk' 'gtk3' 'atk' 'pango')
makedepends=('cargo' 'rust')
backup=("etc/$pkgname.conf") backup=("etc/$pkgname.conf")
source=("https://github.com/Revertron/Alfis/releases/download/v$pkgver/alfis-linux-amd64-v$pkgver.zip" source=('git+https://github.com/Revertron/Alfis.git')
'https://raw.githubusercontent.com/Revertron/Alfis/master/contrib/systemd/alfis.service' sha256sums=('SKIP')
'https://raw.githubusercontent.com/Revertron/Alfis/master/contrib/systemd/alfis.sysusers'
'https://raw.githubusercontent.com/Revertron/Alfis/master/contrib/systemd/alfis.tmpfiles' build() {
) cd "$srcdir/Alfis"
sha256sums=('SKIP'
'SKIP' cargo build --release --all-features --target-dir=target
'SKIP' }
'SKIP'
)
package() { package() {
cd "$srcdir" cd "$srcdir/Alfis"
install -Dm 755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm 644 "$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service" install -Dm 644 "contrib/systemd/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
install -Dm 644 "$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" install -Dm 644 "contrib/systemd/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dm 644 "$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" install -Dm 644 "contrib/systemd/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
} }