summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gregoratto2020-03-30 13:01:51 +1100
committerStephen Gregoratto2020-03-30 13:01:51 +1100
commit5263c2896cfc910520e31a70fe9f33ace48ebd88 (patch)
treef137a280d8b60e264febb80c28e94d8c9652c338
parent4b638dd14fd6a831c267dd0f45df88e2a4d87d99 (diff)
downloadaur-libcotp.tar.gz
Add libgcrypt dep, .gitignore
-rw-r--r--.SRCINFO8
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD15
3 files changed, 15 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e027fd8e989..a9663ef0f88 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = libcotp
pkgdesc = C library that generates TOTP and HOTP
pkgver = 1.2.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/paolostivanin/libcotp
arch = i686
arch = x86_64
@@ -10,9 +10,9 @@ pkgbase = libcotp
license = APACHE
makedepends = cmake
depends = libbaseencode
- options = !strip
- source = https://github.com/paolostivanin/libcotp/archive/v1.2.2.tar.gz
- source = https://github.com/paolostivanin/libcotp/releases/download/v1.2.2/v1.2.2.tar.gz.asc
+ depends = libgcrypt
+ source = libcotp-1.2.2.tar.gz::https://github.com/paolostivanin/libcotp/archive/v1.2.2.tar.gz
+ source = libcotp-1.2.2.tar.gz.asc::https://github.com/paolostivanin/libcotp/releases/download/v1.2.2/v1.2.2.tar.gz.asc
validpgpkeys = 060C6B7D3869F148C4C4ACD43C9BE9B64EC1EA64
sha256sums = 25b45ffa4aece5cc689503ebea7356a2f760c194f0c41805934495d2fe7165b1
sha256sums = SKIP
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e4f9ba3007c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.SRCINFO
+!PKGBUILD
+!.gitignore
diff --git a/PKGBUILD b/PKGBUILD
index 2250259aa3c..becd645f68e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,28 @@
# Maintainer: Paolo Stivanin <info at paolostivanin dot com>
-# Maintainer: KingofToasters <themanhimself at sgregoratto dot me>
+# Maintainer: KingofToasters <dev@sgregoratto.me>
pkgname=libcotp
pkgver=1.2.2
-pkgrel=1
+pkgrel=2
pkgdesc='C library that generates TOTP and HOTP'
url="https://github.com/paolostivanin/libcotp"
license=('APACHE')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
-depends=('libbaseencode')
+depends=('libbaseencode' 'libgcrypt')
makedepends=('cmake')
-options=('!strip')
validpgpkeys=('060C6B7D3869F148C4C4ACD43C9BE9B64EC1EA64')
-source=("$url/archive/v$pkgver.tar.gz"
- "$url/releases/download/v$pkgver/v$pkgver.tar.gz.asc")
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+ "$pkgname-$pkgver.tar.gz.asc::$url/releases/download/v$pkgver/v$pkgver.tar.gz.asc")
sha256sums=('25b45ffa4aece5cc689503ebea7356a2f760c194f0c41805934495d2fe7165b1'
'SKIP')
build() {
- cd "${pkgname}-${pkgver}"
+ cd "$pkgname-$pkgver"
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}/build"
+ cd "$pkgname-$pkgver/build"
make DESTDIR="$pkgdir" install
}