# Maintainer: Natanael Copa <ncopa@alpinelinux.org> setvar pkgname = 'gnupg1' setvar pkgver = '1.4.22' setvar pkgrel = '0' setvar pkgdesc = ""GNU Privacy Guard 1 - a PGP replacement tool"" setvar url = ""http://www.gnupg.org/"" setvar arch = ""all"" setvar license = ""GPL"" setvar depends = ""pinentry"" setvar makedepends = ""curl-dev libassuan libksba-dev libgcrypt-dev libgpg-error-dev zlib-dev libassuan-dev"" setvar subpackages = ""$pkgname-doc"" setvar provides = ""gnupg=$pkgver-r$pkgrel"" setvar replaces = ""gnupg"" setvar source = ""ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-$pkgver.tar.bz2"" setvar builddir = ""$srcdir/gnupg-$pkgver"" proc prepare { cd $builddir # Fix PIC definitions sed -i -e 's:PIC:__PIC__:' \ mpi/i386/mpih-add1.S \ mpi/i386/mpih-sub1.S \ intl/relocatable.c \ || return 1 } proc build { cd $builddir export CFLAGS="$CFLAGS -g" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-nls \ --enable-noexecstack \ || return 1 make || return 1 } proc package { cd $builddir make -j1 DESTDIR="$pkgdir" install } proc doc { default_doc setvar provides = ""gnupg-doc=$pkgver-r$pkgrel"" } setvar sha512sums = ""c03acac0fa55761470bb085d78a44e2b99ebb187e8396cbb031a184b1e40bef2a40c91da07755d1a20610a3daa6aa1eefea2d12a0dbd5a79a45466166419c708 gnupg-1.4.22.tar.bz2""