diff --git a/README.md b/README.md index 8c97fe8..9f68ce1 100644 --- a/README.md +++ b/README.md @@ -38,3 +38,16 @@ cargo build ### On Linux If you are building on Linux you must ensure that you have `libwebkitgtk` library installed. You can do it by issuing this command: `sudo apt install libwebkit2gtk-4.0-dev` (on Debian/Ubuntu and derivatives). + +#### On Arch Linux + +Create and install package with this commands: + +```sh +# make package +curl -L -O https://raw.githubusercontent.com/Revertron/Alfis/master/contrib/PKGBUILD +makepkg + +# install package (from root) +pacman -U alfis-0.3.12-1-x86_64.pkg.tar.xz +``` diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD new file mode 100644 index 0000000..9c02053 --- /dev/null +++ b/contrib/PKGBUILD @@ -0,0 +1,17 @@ +pkgname=alfis +pkgver=0.3.12 +pkgrel=1 +pkgdesc="Alternative Free Identity System" +arch=('x86_64') +license=('AGPL3') +url='https://github.com/Revertron/Alfis' +depends=('webkit2gtk') +backup=("etc/$pkgname.conf") +source=("https://github.com/Revertron/Alfis/releases/download/v${pkgver}/alfis-linux-amd64-v${pkgver}.zip") +sha256sums=('SKIP') + +package() { + cd "$srcdir" + install -Dm 755 "$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm 644 "$pkgname.conf" "$pkgdir/etc/$pkgname.conf" +}