core/libnewt/PKGBUILD

33 lines
852 B
Bash
Raw Normal View History

2014-09-06 06:06:44 +08:00
pkgname=libnewt
2017-10-25 05:16:46 +08:00
pkgver=0.52.20
pkgrel=1
2014-09-06 06:06:44 +08:00
_tclver=8.6
pkgdesc="Not Erik's Windowing Toolkit - text mode windowing with slang"
arch=('x86_64')
2014-09-06 06:06:44 +08:00
url='https://fedorahosted.org/newt/'
license=('GPL')
depends=('slang' 'popt' 'gpm')
makedepends=("tcl>=$_tclver" 'python3' 'python2')
optdepends=('tcl: whiptcl support'
'python3: libnewt support with the _snack module'
2014-09-06 06:06:44 +08:00
'python2: libnewt support with the _snack module')
options=('!makeflags')
source=("https://fedorahosted.org/releases/n/e/newt/newt-$pkgver.tar.gz")
2017-10-25 05:16:46 +08:00
sha256sums=('8d66ba6beffc3f786d4ccfee9d2b43d93484680ef8db9397a4fb70b5adbb6dbc')
2014-09-06 06:06:44 +08:00
prepare() {
cd "newt-$pkgver"
echo '#define USE_INTERP_RESULT 1' >> config.h
}
build() {
cd "newt-$pkgver"
./configure --prefix=/usr --with-gpm-support
make
}
package() {
make -C "newt-$pkgver" prefix="$pkgdir/usr" install
}