Merge pull request #22 from nxshock/master

PKGBUILD improvements
pull/23/head^2
Revertron 4 years ago committed by GitHub
commit 8c3b02b0d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,27 +2,27 @@ pkgname=alfis
pkgver=0.3.12
pkgrel=1
pkgdesc="Alternative Free Identity System"
arch=('x86_64')
arch=('x86_64' 'aarch64')
license=('AGPL3')
url='https://github.com/Revertron/Alfis'
depends=('webkit2gtk')
depends=('webkit2gtk' 'gtk3' 'atk' 'pango')
makedepends=('cargo' 'rust')
backup=("etc/$pkgname.conf")
source=("https://github.com/Revertron/Alfis/releases/download/v$pkgver/alfis-linux-amd64-v$pkgver.zip"
'https://raw.githubusercontent.com/Revertron/Alfis/master/contrib/systemd/alfis.service'
'https://raw.githubusercontent.com/Revertron/Alfis/master/contrib/systemd/alfis.sysusers'
'https://raw.githubusercontent.com/Revertron/Alfis/master/contrib/systemd/alfis.tmpfiles'
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
)
source=('git+https://github.com/Revertron/Alfis.git')
sha256sums=('SKIP')
build() {
cd "$srcdir/Alfis"
cargo build --release --all-features --target-dir=target
}
package() {
cd "$srcdir"
install -Dm 755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
cd "$srcdir/Alfis"
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 "$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.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"
}

Loading…
Cancel
Save