diff options
author | Stephen Gregoratto | 2020-03-30 13:01:51 +1100 |
---|---|---|
committer | Stephen Gregoratto | 2020-03-30 13:01:51 +1100 |
commit | 5263c2896cfc910520e31a70fe9f33ace48ebd88 (patch) | |
tree | f137a280d8b60e264febb80c28e94d8c9652c338 | |
parent | 4b638dd14fd6a831c267dd0f45df88e2a4d87d99 (diff) | |
download | aur-5263c2896cfc910520e31a70fe9f33ace48ebd88.tar.gz |
Add libgcrypt dep, .gitignore
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 15 |
3 files changed, 15 insertions, 12 deletions
@@ -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 000000000000..e4f9ba3007cf --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.SRCINFO +!PKGBUILD +!.gitignore @@ -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 } |