# Maintainer: Paolo Stivanin pkgname=libcotp pkgver=1.0.8 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=("4f709b2d2e5246d6971e75b3c99dcdba5c20ee6800b944b32a0dd1f9986c0efb") build() { cd "${srcdir}/${pkgname}-${pkgver}" mkdir build && cd $_ cmake ../ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd "${srcdir}/${pkgname}-${pkgver}/build" make DESTDIR="$pkgdir" install }