From 5749e93aa356d2720703d9dcdc8fc500df91f088 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sat, 3 Apr 2021 17:44:49 +0500 Subject: [PATCH 1/3] Add basic PKGBUILD for Arch Linux --- PKGBUILD | 17 +++++++++++++++++ README.md | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..c5088b8 --- /dev/null +++ b/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.toml") +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.toml" "$pkgdir/etc/$pkgname.toml" +} diff --git a/README.md b/README.md index 8c97fe8..97a17d9 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/PKGBUILD +makepkg + +# install package (from root) +pacman -U alfis-0.3.12-1-x86_64.pkg.tar.xz +``` From 9029d88707b340c02478ba6c4a0ab7b52548f916 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sat, 3 Apr 2021 17:50:27 +0500 Subject: [PATCH 2/3] Switch config ext to "conf" --- PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index c5088b8..9c02053 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,12 +6,12 @@ arch=('x86_64') license=('AGPL3') url='https://github.com/Revertron/Alfis' depends=('webkit2gtk') -backup=("etc/$pkgname.toml") +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.toml" "$pkgdir/etc/$pkgname.toml" + install -Dm 644 "$pkgname.conf" "$pkgdir/etc/$pkgname.conf" } From a0cfaa0df40d2148f2314a37a2e51ce0fc13c46e Mon Sep 17 00:00:00 2001 From: nxshock Date: Sat, 3 Apr 2021 17:53:28 +0500 Subject: [PATCH 3/3] Move PKGBUILD to contrib dir --- README.md | 2 +- PKGBUILD => contrib/PKGBUILD | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename PKGBUILD => contrib/PKGBUILD (100%) diff --git a/README.md b/README.md index 97a17d9..9f68ce1 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Create and install package with this commands: ```sh # make package -curl -L -O https://raw.githubusercontent.com/Revertron/Alfis/master/PKGBUILD +curl -L -O https://raw.githubusercontent.com/Revertron/Alfis/master/contrib/PKGBUILD makepkg # install package (from root) diff --git a/PKGBUILD b/contrib/PKGBUILD similarity index 100% rename from PKGBUILD rename to contrib/PKGBUILD