aboutsummaryrefslogtreecommitdiff
path: root/gnunet-build/packages/libs/libgpg-error/Buildrules
blob: 83c65b42c702a01e31602573aee5717f2f876267 (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
VERSION="1.12"
DESCRIPTION="Libgpg-error is a small library that defines common error values for all GnuPG components."
SOURCE_URI="ftp://ftp.gnupg.org/gcrypt/${NAME}/${NAME}-${VERSION}.tar.bz2"

pkg_compile() {
        export TEMP_DIR="${T}"
	# Build libgpg-error first using build system tools to produce generated
	# header files.
	./configure
	make
	# Build again with emscripten, keeping generated files fresh so make
	# won't rebuild them.
        emconfigure ./configure --prefix=/usr \
                                --sysconfdir=/etc \
				--disable-nls
	touch src/mkerrcodes.h
	touch src/mkerrcodes
	touch src/code-from-errno.h
	touch src/gpg-error.def
        emmake make
        emmake make DESTDIR="${D}" install
}

# vim: syntax=sh