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

                                                   
            
        

                                                   
          

                                       
        
                                  
                                                                                           
                                   
                                        

         
            
                                     
                                     



                                                                        
            



                                     



                                 



                                       



                                     
                                                          
 
                                                             







                                                                                                                                                                   
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=slang
pkgver=2.2.4
pkgrel=2
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
	musl-fix-posix_close-clash.patch
	"

prepare () {
	cd "$srcdir"/$pkgname-$pkgver
	update_config_sub || 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 \
		--build=$CBUILD \
		--host=$CHOST \
		--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="86cd8689cd71e281b4720fef8453ceeb  slang-2.2.4.tar.gz
7f67ad2059a7dd3cad289da97d547521  slang-2.2.3-slsh-libs.patch
75edbc059fb9af7916e71ea932010aa4  musl-fix-posix_close-clash.patch"
sha256sums="e334028e0c75c35406d10fe9e1686f36a615dcc6e2af90e8de25d299e8e6129f  slang-2.2.4.tar.gz
a60e88f3066fd69b676ad84c34777915f6c59649fabf34f45d8accc6e1c6ed8d  slang-2.2.3-slsh-libs.patch
47359f7c02691895cafb6b2c1e3fbe8ec59bf8e65d22d1052eb415918dc5689c  musl-fix-posix_close-clash.patch"
sha512sums="fe5335517d307beb7aea6482f1c78eaed2ce8350685149381eab1cdef69824affee5f1aed24ad0b5a3f13792159c1d0ebb087fb2d9bcd975c6348b9929600629  slang-2.2.4.tar.gz
0651a89670bbe9f0d15797986edb0c6ce2bc25f3662b530b716a75a30d4df697b08c466c13426372a426e6adf8da00ab34d125da0703e60fe684d7e3e0852a48  slang-2.2.3-slsh-libs.patch
09dacad6f7bcfc8ac1b946e395f70fa0a57441617a44cbf7a8b964111cd826ba779e454310e5125717f6700e7f1af5b89dd01dcf37e8d9d8f902b3d546f5d5b2  musl-fix-posix_close-clash.patch"