From 354fcf8b0065c7b89fcaab24acbe1a954c0f7dad Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 25 Feb 2011 09:58:59 +0000 Subject: main/slang: upgrade to 2.2.3 --- main/slang/APKBUILD | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'main/slang/APKBUILD') diff --git a/main/slang/APKBUILD b/main/slang/APKBUILD index a932fa3a4..b4a3329c4 100644 --- a/main/slang/APKBUILD +++ b/main/slang/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=slang -pkgver=2.2.1 -pkgrel=3 +pkgver=2.2.3 +pkgrel=0 pkgdesc="S-Lang is a powerful interpreted language" url="http://www.s-lang.org/" arch="all" @@ -10,27 +10,30 @@ subpackages="$pkgname-dev $pkgname-doc" depends= makedepends="pcre-dev ncurses-dev" source="ftp://ftp.fu-berlin.de/pub/unix/misc/$pkgname/v${pkgver%.*}/$pkgname-$pkgver.tar.gz - slang-2.1.3-uclibc.patch + slang-2.2.3-slsh-libs.patch " prepare () { cd "$srcdir"/$pkgname-$pkgver - for i in ../*.patch; do - msg "Applying $i..." - patch -p1 < $i || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac done } build () { cd "$srcdir"/$pkgname-$pkgver ./configure --prefix=/usr \ - --sysconfdir=/etc || return 1 - make || return 1 + --sysconfdir=/etc \ + || return 1 + make -j1 elf static || return 1 + cd slsh && make || return 1 } package() { cd "$srcdir"/$pkgname-$pkgver make -j1 install-all DESTDIR="$pkgdir" || return 1 } -md5sums="9a72420df2aa7b1932a195c6e5a85465 slang-2.2.1.tar.gz -56ca82f415578994b6050e769b6b7bc9 slang-2.1.3-uclibc.patch" +md5sums="ffd7718a9808894413a0e0ee82a79335 slang-2.2.3.tar.gz +7f67ad2059a7dd3cad289da97d547521 slang-2.2.3-slsh-libs.patch" -- cgit v1.2.3