summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Stivanin2017-04-23 18:33:59 +0200
committerPaolo Stivanin2017-04-23 18:33:59 +0200
commitbcc4f7c6d42a68118187969492b91b96b3491b64 (patch)
treea85f2a985bc93d15e5ef9066cbd2373a6df036a4
downloadaur-bcc4f7c6d42a68118187969492b91b96b3491b64.tar.gz
v1.0.6
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD28
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b232e89c4da
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = libcotp
+ pkgdesc = C library that generates TOTP and HOTP
+ pkgver = 1.0.6
+ pkgrel = 1
+ url = https://github.com/paolostivanin/libcotp
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ depends = libbaseencode
+ options = !strip
+ source = https://github.com/paolostivanin/libcotp/archive/v1.0.6.tar.gz
+ sha256sums = ef9c143c9d91f47d010e67547197915442e4c4f8845a1fb8a53bf2d042b94478
+
+pkgname = libcotp
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0d0f5d93d27
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Paolo Stivanin <info A,T paolostivanin D,O,T com>
+
+pkgname=libcotp
+pkgver=1.0.6
+pkgrel=1
+pkgdesc='C library that generates TOTP and HOTP'
+arch=('i686' 'x86_64')
+depends=('libbaseencode')
+makedepends=('cmake')
+url="https://github.com/paolostivanin/libcotp"
+options=('!strip')
+license=('GPL3')
+
+source=("https://github.com/paolostivanin/$pkgname/archive/v$pkgver.tar.gz")
+
+sha256sums=("ef9c143c9d91f47d010e67547197915442e4c4f8845a1fb8a53bf2d042b94478")
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ mkdir build && cd $_
+ cmake ../ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}/build"
+ make DESTDIR="$pkgdir" install
+}