summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Demers2015-06-09 17:57:35 -0400
committerAlexandre Demers2015-06-09 17:57:35 -0400
commita4cb50cacdbe7b998366f3bb38a6d742d990ad4a (patch)
tree891250573f393b5523a352d73cb2ca4b036a0cd1
downloadaur-a4cb50cacdbe7b998366f3bb38a6d742d990ad4a.tar.gz
Initial import
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD54
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..026c2099c42
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = libgcrypt15-git
+ pkgdesc = General purpose cryptographic library based on the code from GnuPG. Latest commit from 1.5 branch - API version 11.
+ pkgver = 1.5.4.r3.g35cd81f
+ pkgrel = 1
+ url = http://www.gnupg.org
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = transfig
+ makedepends = automake
+ makedepends = ghostscript
+ depends = libgpg-error
+ provides = libgcrypt=1.5.4.r3.g35cd81f
+ provides = libgcrypt15=1.5.4.r3.g35cd81f
+ conflicts = libgcrypt15
+ conflicts = libgcrypt11
+ source = git://git.gnupg.org/libgcrypt.git#branch=LIBGCRYPT-1-5-BRANCH
+ sha1sums = SKIP
+
+pkgname = libgcrypt15-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d474fa34dac
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Alexandre Demers <alexandre.f.demers@gmail.com>
+
+_gitname=libgcrypt
+pkgname=libgcrypt15-git
+pkgver=1.5.4.r3.g35cd81f
+pkgrel=1
+pkgdesc="General purpose cryptographic library based on the code from GnuPG. Latest commit from 1.5 branch - API version 11."
+arch=('i686'
+ 'x86_64')
+url="http://www.gnupg.org"
+license=('GPL2')
+depends=('libgpg-error')
+makedepends=('git'
+ 'transfig'
+ 'automake'
+ 'ghostscript')
+provides=("libgcrypt=${pkgver}"
+ "libgcrypt15=${pkgver}")
+conflicts=("libgcrypt15"
+ "libgcrypt11")
+
+source=(git://git.gnupg.org/libgcrypt.git#branch=LIBGCRYPT-1-5-BRANCH)
+sha1sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/$_gitname"
+ git describe --long | sed -r 's/^libgcrypt-//;s/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ echo "$srcdir/$_gitname"
+ cd "$srcdir/$_gitname"
+ ./autogen.sh --force
+ automake --add-missing
+
+ ./configure --enable-maintainer-mode \
+ --prefix=/usr \
+ --disable-static \
+ --disable-padlock-support
+ make
+}
+
+# check() {
+ # cd ${_pkgname}-${pkgver}
+ # make check
+# }
+
+package() {
+ cd "$srcdir/$_gitname"
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "$pkgdir"/usr/{bin,include,share}
+ rm -rf "$pkgdir"/usr/lib/libgcrypt.so
+}