summaryrefslogtreecommitdiff
path: root/pcr/d0_blind_id-git
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-07-16 18:37:52 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-07-16 18:37:52 -0300
commit5e92143b58bc8552319151b87c531fa5a66005e5 (patch)
tree1c6d61cec06434f7b8a808fe48cc6b1649b49ad2 /pcr/d0_blind_id-git
parenteb9a9b697eb07e5b7afa4349c5055113823eb439 (diff)
d0_blind_id-git: add new package to pcr repo
Diffstat (limited to 'pcr/d0_blind_id-git')
-rw-r--r--pcr/d0_blind_id-git/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/pcr/d0_blind_id-git/PKGBUILD b/pcr/d0_blind_id-git/PKGBUILD
new file mode 100644
index 000000000..bfda13205
--- /dev/null
+++ b/pcr/d0_blind_id-git/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: MrBougo <bougospam at gmail dot com>
+pkgname=d0_blind_id-git
+pkgver=20120716
+pkgrel=1
+pkgdesc="Cryptographic library for identification with Schnorr ID scheme and Blind RSA Signatures"
+arch=('i686' 'x86_64')
+url="http://github.com/divVerent/d0_blind_id"
+license=('BSD')
+depends=('gmp')
+makedepends=('git')
+conflicts=()
+options=('!libtool')
+
+_gitroot="git://git.xonotic.org/xonotic/d0_blind_id.git"
+_gitname="d0_blind_id"
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [ -d $_gitname ] ; then
+ cd $_gitname && git pull origin
+ msg "The local files are updated."
+ else
+ git clone $_gitroot $_gitname
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting make..."
+
+ rm -rf "$srcdir/$_gitname-build"
+ git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ cd "$srcdir/$_gitname-build"
+
+ sh autogen.sh
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}