diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
commit | b70981b68efcce5256eb11c6cd26ae123b10b6ea (patch) | |
tree | a38be6efae5e2ba15c2e839504632f9b7bfd5f91 /main/newt/APKBUILD | |
parent | 2b4df81538b8398442d5296650905c70341dd8d3 (diff) | |
download | aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.bz2 aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.xz |
moved extra/* to main/
and fixed misc build issues
Diffstat (limited to 'main/newt/APKBUILD')
-rw-r--r-- | main/newt/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/newt/APKBUILD b/main/newt/APKBUILD new file mode 100644 index 000000000..dc81b8b67 --- /dev/null +++ b/main/newt/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=newt +pkgver=0.52.8 +pkgrel=0 +pkgdesc="Redhat's Newt windowing toolkit development files" +url="http://www.redhat.com/" +license="LGPL-2" +depends="uclibc slang popt ncurses" +makedepends="slang-dev popt-dev python-dev ncurses-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="http://distfiles.gentoo.org/distfiles/$pkgname-$pkgver.tar.gz + $pkgname-0.52.7-notcl.patch + " + +build() { + cd "$srcdir"/$pkgname-$pkgver + for i in ../*.patch; do + msg "Applying $i..." + patch -p1 < $i || return 1 + done + + sed -i -e 's:-lslang:-lslang -lncurses:g' \ + -e 's:instroot:DESTDIR:g' Makefile.in || return 1 + + ./configure --prefix=/usr \ + --without-gpm \ + --without-tcl \ + --disable-nls + make -j1 RPM_OPT_FLAGS="$CFLAGS" || return 1 + # TODO: fix the make install target to not try install po files + make -j1 DESTDIR="$pkgdir" prefix="/usr" RPM_OPT_FLAGS="ERROR" install \ + || true +} +md5sums="0daef93590e9b6fd3419c871e75f9fa7 newt-0.52.8.tar.gz +6780156f3b66a3f05efe1ee821617031 newt-0.52.7-notcl.patch" |