aboutsummaryrefslogtreecommitdiffstats
path: root/community/stoken/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/stoken/APKBUILD')
-rw-r--r--community/stoken/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/stoken/APKBUILD b/community/stoken/APKBUILD
new file mode 100644
index 0000000000..9ef7431f72
--- /dev/null
+++ b/community/stoken/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=stoken
+pkgver=0.92
+pkgrel=3
+pkgdesc="RSA SecurID-compatible software token for Linux/UNIX systems"
+url="https://github.com/cernekee/stoken"
+arch="all"
+license="LGPL-2.1-or-later"
+makedepends="autoconf automake libtool libxml2-dev nettle-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/cernekee/stoken/archive/v$pkgver.tar.gz"
+
+prepare() {
+ default_prepare
+ ./autogen.sh
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --datadir=/usr/share \
+ --disable-static
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR=$pkgdir install
+}
+
+dev() {
+ default_dev
+ cd "$builddir"
+ rm "$subpkgdir"/usr/share/doc/stoken/*
+ rmdir "$subpkgdir"/usr/share/doc/stoken
+ rmdir "$subpkgdir"/usr/share/doc
+}
+
+sha512sums="b41262320c24e487ece884fc431d835c787f057947a92e3d57ed2047bc02b576b072e8a69f4b58b47ab1f913b5ae8c3ee8108d3b55c1477f15848420b668fea3 stoken-0.92.tar.gz"