summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 16 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f4299b4b09d..f3173f284a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,22 @@
# Maintainer: Alexandre Demers <alexandre.f.demers@gmail.com>
_gitname=libgcrypt
+_setPrefix="/usr"
+_setLibdir="$_setPrefix/lib"
pkgname=libgcrypt15-git
-pkgver=1.5.4.r3.g35cd81f
-pkgrel=2
+pkgver=1.5.6.r1.g7104edfc
+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')
+depends=('glibc'
+ 'libgpg-error')
+makedepends=('automake'
+ 'fig2dev'
+ 'ghostscript'
+ 'git')
provides=("libgcrypt=${pkgver}"
"libgcrypt15=${pkgver}")
conflicts=("libgcrypt15"
@@ -28,19 +31,18 @@ pkgver() {
}
build() {
- _cpucount=$(grep -c processor /proc/cpuinfo 2>/dev/null)
- _jc=$((${_cpucount:-1}))
-
echo "$srcdir/$_gitname"
cd "$srcdir/$_gitname"
./autogen.sh --force
automake --add-missing
./configure --enable-maintainer-mode \
- --prefix=/usr \
+ --prefix=$_setPrefix \
+ --libdir=$_setLibdir \
--disable-static \
--disable-padlock-support
- make -j $_jc
+
+ make
}
# check() {
@@ -52,6 +54,6 @@ package() {
cd "$srcdir/$_gitname"
make DESTDIR="${pkgdir}" install
- rm -rf "$pkgdir"/usr/{bin,include,share}
- rm -rf "$pkgdir"/usr/lib/libgcrypt.so
+ rm -rf "$pkgdir/$_setPrefix"/{bin,include,share}
+ rm -rf "$pkgdir/$_setLibdir"/libgcrypt.so
}