aboutsummaryrefslogblamecommitdiffstats
path: root/main/stfl/APKBUILD
blob: 41a7eb0ec8ca96e3cd748a24ab285b9c3c83be04 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                   
           
        


                                                        
                           

              
                                      


                                                       
                      













                                                                        
                                    



                       
                                                              

                                          

 

                                                                                                                                                              
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=stfl
pkgver=0.24
pkgrel=2
pkgdesc="The Structured Terminal Forms Language/Library"
url="http://www.clifford.at/stfl/"
arch="all"
license="LGPL-3.0-or-later"
depends=""
depends_dev=""
makedepends="$depends_dev ncurses-dev"
install=""
subpackages="$pkgname-dev"
source="http://www.clifford.at/stfl/stfl-$pkgver.tar.gz
	ncurses.patch"

_builddir="$srcdir"/stfl-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make prefix=/usr || return 1
}

package() {
	cd "$_builddir"
	make prefix=/usr DESTDIR="$pkgdir" install || return 1
	cd "$pkgdir"/usr/lib
	ln -s libstfl.so.0.24 libstfl.so.0
}

sha512sums="95df4574b1bc32d795751156dc5b93afbca3ba241607a3a55210c89dda61b9a26ad574bb5f729a0158c9052235dbf63d6c58b38e7f1061d14ab7062af6150fa0  stfl-0.24.tar.gz
d445b7bebd53ab23765f8386d8e69080df1cf95ca7368dee98594176e5a99f73d741a14e81af1500dc249c2a485574a5323d16fffa12536f7f3f20049b636de6  ncurses.patch"