blob: b211173ff341d3a7bd1312613c9ea6adee936988 (
plain)
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pinentry
pkgver=0.7.6
_uiconv_ver=0.3
pkgrel=0
pkgdesc="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
url="http://www.gnupg.org/aegypten2"
license="GPL-2"
depends="ncurses libcap"
makedepends="ncurses-dev libcap-dev"
subpackages="$pkgname-doc"
source="ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.gz
http://git.alpinelinux.org/cgit/uiconv/snapshot/uiconv-$_uiconv_ver.tar.bz2
"
build () {
# we build it against uiconv to avoid the bloaty GNU libiconv.
# it will be linked statically so we don't need it in depends
cd "$srcdir/uiconv-$_uiconv_ver"
make
make DESTDIR="$srcdir" PREFIX=/uiconv install
cd "$srcdir"/$pkgname-$pkgver
# the configure script have a broken --with-libiconv-prefix option
# so we set the -I and -L flags hard
export CFLAGS="$CFLAGS -I $srcdir/uiconv/include"
export LDFLAGS="$LDFLAGS -L $srcdir/uiconv/lib"
./configure --prefix=/usr \
--disable-pinentry-gtk \
--disable-pinentry-gtk2 \
--disable-pinentry-qt \
--enable-pinentry-curses \
--enable-fallback-curses \
--with-libiconv-prefix="$srcdir"/uiconv
make || return 1
make DESTDIR="$pkgdir" install
}
md5sums="5a4f676375fa882009da02013d77210f pinentry-0.7.6.tar.gz
5cd7f80085324d08cb976fec674cd98d uiconv-0.3.tar.bz2"
|