aboutsummaryrefslogblamecommitdiffstats
path: root/main/slang/APKBUILD
blob: b4a3329c497b18f5d6ed189706dbc9cb90aadc84 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   

            

                                                   
          

                                       
        
                                  
                                                                                           
                                   

         
            
                                     



                                                                        
            



                                     
                                   



                                       



                                     
                                                          
 

                                                              
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=slang
pkgver=2.2.3
pkgrel=0
pkgdesc="S-Lang is a powerful interpreted language"
url="http://www.s-lang.org/"
arch="all"
license="GPL"
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.2.3-slsh-libs.patch
	"

prepare () {
	cd "$srcdir"/$pkgname-$pkgver
	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 -j1 elf static || return 1
	cd slsh && make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make -j1 install-all DESTDIR="$pkgdir" || return 1
}
md5sums="ffd7718a9808894413a0e0ee82a79335  slang-2.2.3.tar.gz
7f67ad2059a7dd3cad289da97d547521  slang-2.2.3-slsh-libs.patch"