diff options
author | Étienne Deparis | 2017-09-19 21:38:11 +0200 |
---|---|---|
committer | Étienne Deparis | 2017-09-19 21:38:11 +0200 |
commit | b389b6436bf919ab1905c040e9742e8401a703a4 (patch) | |
tree | fd65853a8b8b3bc2d721364edf2f57b3e64f20d2 | |
download | aur-b389b6436bf919ab1905c040e9742e8401a703a4.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9a1a88ca4c23 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by makepkg 5.0.2 +# Tue Sep 19 19:37:51 UTC 2017 +pkgbase = libnitrokey-git + pkgdesc = Nitrokey management application + pkgver = 3.0r515.8f7435e + pkgrel = 1 + url = https://www.nitrokey.com + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = cmake + makedepends = qt5-tools + depends = libusb + depends = hidapi + source = libnitrokey::git+https://github.com/Nitrokey/libnitrokey.git + sha256sums = SKIP + +pkgname = libnitrokey-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..62b5f123a0b3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Étienne Deparis <etienne@depar.is> + +pkgname=libnitrokey-git +_gitname=libnitrokey +pkgver=3.0r515.8f7435e +pkgrel=1 +pkgdesc="Nitrokey management application" +arch=('i686' 'x86_64') +url="https://www.nitrokey.com" +license=('GPL3') +depends=(libusb hidapi) +makedepends=('cmake' 'qt5-tools') +source=("${_gitname}::git+https://github.com/Nitrokey/${_gitname}.git") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/${_gitname}/" + curver=$(sed -n 's/^SET(PROJECT_VERSION "\(.*\)-alpha")$/\1/p' CMakeLists.txt) + printf "%sr%s.%s" "$curver" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/${_gitname}/" + mkdir -p build +} + +build() { + cd "$srcdir/${_gitname}/build" + + cmake .. \ + -DLIBNITROKEY_STATIC=OFF \ + -DCOMPILE_TESTS=OFF \ + -DUSE_CLANG=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd "$srcdir/${_gitname}/build" + make DESTDIR="$pkgdir" install + install -D -m755 libnitrokey-log.so "$pkgdir/usr/lib/libnitrokey-log.so" + + cd .. + install -d -m755 $pkgdir/usr/lib/${_gitname} + cp -R include $pkgdir/usr/lib/${_gitname}/ + + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE" +} |