diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-03-08 13:13:56 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-03-08 13:13:56 +0000 |
commit | fe10c224a3e5aaaeb696b6178b4546b6cdf4a217 (patch) | |
tree | 1c208e012be9915926c3a703848c6b65579d3d47 /main | |
parent | eb9bf89513895bedf42440bec6469f3c8b04d4bb (diff) | |
download | aports-fe10c224a3e5aaaeb696b6178b4546b6cdf4a217.tar.bz2 aports-fe10c224a3e5aaaeb696b6178b4546b6cdf4a217.tar.xz |
main/newt: upgrade to 0.52.19. Cleaned up APKBUILD, fixed source url
Diffstat (limited to 'main')
-rw-r--r-- | main/newt/APKBUILD | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/main/newt/APKBUILD b/main/newt/APKBUILD index 08571866a1..555176830b 100644 --- a/main/newt/APKBUILD +++ b/main/newt/APKBUILD @@ -1,32 +1,28 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=newt -pkgver=0.52.16 +pkgver=0.52.19 pkgrel=0 pkgdesc="Redhat's Newt windowing toolkit development files" -url="https://fedorahosted.org/newt/" +url="https://pagure.io/newt/" arch="all" license="LGPL2" depends= makedepends="slang-dev popt-dev python2-dev ncurses-dev" -subpackages="$pkgname-dev $pkgname-doc py-newt:py" -source="https://fedorahosted.org/releases/n/e/newt/newt-$pkgver.tar.gz +subpackages="$pkgname-dev $pkgname-doc py-newt:py $pkgname-lang" +source="https://releases.pagure.org/newt/newt-$pkgver.tar.gz parallel-build.patch fix-includes.patch" -prepare() { - cd "$srcdir"/$pkgname-$pkgver - for i in ../*.patch; do - [ -r "$i" ] || continue - msg "Applying $i..." - patch -p1 < $i || return 1 - done +builddir="$srcdir/$pkgname-$pkgver" +prepare() { + cd "$builddir" sed -i -e 's:-lslang:-lslang -lncurses:g' \ -e 's:instroot:DESTDIR:g' Makefile.in || return 1 } build() { - cd "$srcdir"/$pkgname-$pkgver + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -38,24 +34,18 @@ build() { } package() { - cd "$srcdir"/$pkgname-$pkgver + cd "$builddir" # TODO: fix the make install target to not try install po files make -j1 DESTDIR="$pkgdir" prefix="/usr" RPM_OPT_FLAGS="ERROR" install \ || true } py() { - pkgdesc="A NEWT module for Python" + pkgdesc="A NEWT module for Python2" mkdir -p "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } -md5sums="6ce923015cf87ef2c17779d24692f573 newt-0.52.16.tar.gz -3351a92d9bdc1c0c7d05664e95622208 parallel-build.patch -d4637d1cec167e1d7087b9137b6954db fix-includes.patch" -sha256sums="1b9574bc9c8fb7b25cd26e5c3f2840e8c17fde5dd09c759604925919b3589cd3 newt-0.52.16.tar.gz -f153d75b728ef41153bf4deb0306336cc17a2fe538026e0122ebc398f146266d parallel-build.patch -bff77da4814f8f4ec09572bac464bf7545d4790ada2f4c0deffb27128b6dd83d fix-includes.patch" -sha512sums="38cf5aa6660a3ee0409ed0767c02d777a4a2c28a000a359bb735da5abf8ee38f375ef333d10865a1eb3828497b6c58d2f3f6011c7b7e7c2360612b985dcf3d25 newt-0.52.16.tar.gz +sha512sums="a71b3ea69e09f348f6f883c9c3cccf3743e986858235e3df1c85e28d74605a1f822bc35c9450c473efe7e6b5f252d2b5a12e11b2023463e9803916ff09b42834 newt-0.52.19.tar.gz ea3937142ce776b6c227936e87f7bc28116ab7775db5785600e39bee38eba914d3ccae1ecb54d9f4ac9505918da255d69a777b105d80d72cd087545b1dae18bc parallel-build.patch ce53446eb587b79790f12f806f02999568cb49067520813ab146d1f16c71f009e86ab72d08666e483b550fdae3332b673935b8aa1a14b02f5273217fb5404611 fix-includes.patch" |