diff options
author | Stephen Gregoratto | 2018-01-07 21:34:28 +1100 |
---|---|---|
committer | Stephen Gregoratto | 2018-01-07 21:34:28 +1100 |
commit | 07f474beaabaee7a97698dd1ec5169d1e9d9af2c (patch) | |
tree | 7184b1ef19a8a9baa474ef7b1d937c93f86a9aa1 | |
download | aur-07f474beaabaee7a97698dd1ec5169d1e9d9af2c.tar.gz |
Initial PKGBUILD
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..58a8f22a9bb7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = otpclient-git + pkgdesc = Simple GTK+ v3 TOTP/HOTP client that uses libcotp + pkgver = 1.0.5 + pkgrel = 1 + url = https://github.com/paolostivanin/OTPClient + arch = x86_64 + license = GPL3 + makedepends = cmake + makedepends = git + depends = gtk3 + depends = glib2 + depends = json-glib + depends = libgcrypt + depends = json-glib + depends = libzip + depends = libcotp + depends = pkg-config + provides = otpclient + source = git+https://github.com/paolostivanin/OTPClient + sha256sums = SKIP + +pkgname = otpclient-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ea6b7c07da7b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: KingofToasters <s.gregoratto+arch@gmail.com> + +pkgname=otpclient-git +dirname="OTPClient" +pkgver=1.0.5 +pkgrel=1 +pkgdesc="Simple GTK+ v3 TOTP/HOTP client that uses libcotp" +arch=('x86_64') +url="https://github.com/paolostivanin/OTPClient" +license=('GPL3') +depends=('gtk3' 'glib2' 'json-glib' 'libgcrypt' 'json-glib' 'libzip' 'libcotp' 'pkg-config') +makedepends=('cmake' 'git') +provides=(otpclient) +source=("git+$url") +sha256sums=('SKIP') + +pkgver() { + cd "$dirname" + printf "%s" "$(git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} + +build() { + + cd $dirname + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. + make +} + +package() { + cd $dirname/build + make DESTDIR="$pkgdir/" install +} |