-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
59 lines (51 loc) · 1.79 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# GnuPG2 GIT version
# Maintainer: alphazo@gmail.com
# Based on official package maintained by Tobias Powalowski <tpowa@archlinux.org>
pkgname=gnupg2-git
pkgver=20121204
pkgrel=1
pkgdesc="GNU Privacy Guard 2 - a PGP replacement tool. Development version. Do not use in production environments. Test new ECC algorithm by using --expert with --gen-key"
arch=('i686' 'x86_64')
depends=('libldap' 'curl' 'bzip2' 'zlib' 'libksba>=1.2' 'libgpg-error>=1.1' 'libgcrypt>=1.5'
'pth' 'libusb-compat' 'libassuan-git' 'npth-git' 'texinfo' 'readline' 'pinentry')
license=('GPL')
url="http://www.gnupg.org/"
makedepends=('git' 'ghostscript' 'transfig')
provides=("gnupg=${pkgver}")
conflicts=('gnupg2' 'gnupg' 'dirmngr')
replaces=('gnupg2' 'gnupg' 'dirmngr')
install=${pkgname}.install
sha1sums=('cc14d9d221fbfc44ff612677d6f4bd96b679b504')
_gitroot="git://git.gnupg.org/gnupg.git"
_gitname="gnupg"
build() {
# cd ${srcdir}/gnupg-$pkgver
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"
read me
./autogen.sh --force
./configure --enable-maintainer-mode --prefix=/usr --libexecdir=/usr/lib/gnupg #$EXTRAOPTS
make
}
package() {
cd "$srcdir/$_gitname-build"
make DESTDIR=${pkgdir} install
# move conflicting files
#mv ${pkgdir}/usr/share/gnupg{,2}
#rm -f ${pkgdir}/usr/share/info/dir
# Remove conflicting man file
#rm -f ${pkgdir}/usr/share/man/man7/gnupg.7
ln -s gpg2 "${pkgdir}"/usr/bin/gpg
ln -s gpg2.1.gz "${pkgdir}"/usr/share/man/man1/gpg.1.gz
}