summaryrefslogtreecommitdiff
path: root/pcr/nitrokey-app-git/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-29 19:12:59 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-29 19:14:48 -0300
commit100c816b442370b8a4ed4227a316593703501490 (patch)
treefec5085b1f5e9b560f05ffa23595daf3fb92f072 /pcr/nitrokey-app-git/PKGBUILD
parent39e0a61a100c7570114e7f667e90708c2113f9ba (diff)
downloadabslibre-100c816b442370b8a4ed4227a316593703501490.tar.gz
abslibre-100c816b442370b8a4ed4227a316593703501490.tar.bz2
abslibre-100c816b442370b8a4ed4227a316593703501490.zip
nitrokey-app-git: add new package to [pcr] - Packaging request #1078 -> https://labs.parabola.nu/issues/1078
Diffstat (limited to 'pcr/nitrokey-app-git/PKGBUILD')
-rw-r--r--pcr/nitrokey-app-git/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/pcr/nitrokey-app-git/PKGBUILD b/pcr/nitrokey-app-git/PKGBUILD
new file mode 100644
index 000000000..507a1aab6
--- /dev/null
+++ b/pcr/nitrokey-app-git/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer (Arch): Christoph J. Thompson <thompsonc@protonmail.ch>
+
+_pkgname=nitrokey-app
+pkgname=nitrokey-app-git
+pkgver=r626.g3b9d633
+pkgrel=1
+pkgdesc="Nitrokey management application"
+arch=('i686' 'x86_64')
+url="https://www.nitrokey.com"
+license=('GPL3')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+depends=('qt5-base' 'libusb>=1.0.0')
+makedepends=('git' 'cmake')
+source=("${_pkgname}::git+https://github.com/Nitrokey/nitrokey-app")
+install=nitrokey-app.install
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${_pkgname}"
+ printf "r%s.g%s" \
+ "$(git rev-list --count HEAD)" \
+ "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${_pkgname}"
+ sed -i 's|/etc/udev/rules.d|/usr/lib/udev/rules.d|g' CMakeLists.txt
+ sed -i 's|/etc/bash_completion.d|/usr/share/bash-completion/completions|g' \
+ CMakeLists.txt
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DHAVE_LIBAPPINDICATOR=NO
+ make
+}
+
+package() {
+ cd "${_pkgname}"
+ make DESTDIR="${pkgdir}" install
+}