Merge pull request #23 from nxshock/master

PKGBUILD: Get version of package from git tag
pull/24/head
Revertron 4 years ago committed by GitHub
commit 3e02e31243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,9 +45,10 @@ Create and install package with this commands:
```sh ```sh
# make package # make package
curl -L -O https://raw.githubusercontent.com/Revertron/Alfis/master/contrib/PKGBUILD git clone https://github.com/Revertron/Alfis.git
cd Alfis/contrib
makepkg makepkg
# install package (from root) # install package (from root)
pacman -U alfis-0.3.12-1-x86_64.pkg.tar.xz pacman -U alfis-<version>-1-x86_64.pkg.tar.xz
``` ```

@ -1,27 +1,25 @@
pkgname=alfis pkgname=alfis
pkgver=0.3.13 pkgver=$(sh ./semver/version.sh --bare)
pkgrel=1 pkgrel=1
pkgdesc="Alternative Free Identity System" pkgdesc="Alternative Free Identity System"
arch=('x86_64' 'aarch64') arch=('x86_64' 'aarch64')
license=('AGPL3') license=('AGPL3')
url='https://github.com/Revertron/Alfis' url='https://github.com/Revertron/Alfis'
depends=('webkit2gtk' 'gtk3' 'atk' 'pango') depends=('webkit2gtk' 'gtk3')
makedepends=('cargo' 'rust') makedepends=('cargo' 'rust' 'atk' 'pango')
backup=("etc/$pkgname.conf") backup=("etc/$pkgname.conf")
source=('git+https://github.com/Revertron/Alfis.git')
sha256sums=('SKIP')
build() { build() {
cd "$srcdir/Alfis" cd "$startdir/.."
cargo build --release --all-features --target-dir=target cargo build --release --all-features --target-dir=target
} }
package() { package() {
cd "$srcdir/Alfis" cd "$startdir/.."
install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" 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.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.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/systemd/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"

Loading…
Cancel
Save