Create package from source instead of binary files

This commit is contained in:
nxshock
2021-04-04 17:40:58 +05:00
parent 1bccaed4b7
commit 0d096d2775
+16 -16
View File
@@ -5,24 +5,24 @@ pkgdesc="Alternative Free Identity System"
arch=('x86_64') arch=('x86_64')
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"
} }