iglunix/pkgs/netbsd-curses/build.sh
2021-01-12 11:06:46 +00:00

45 lines
827 B
Bash

pkgver=0.3.1
pkgname=netbsd-curses
bad=""
ext="doc:dev"
fetch() {
curl -L https://github.com/sabotage-linux/netbsd-curses/archive/v$pkgver.tar.gz -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
ckati
}
package() {
cd $pkgname-$pkgver
ckati install DESTDIR=$pkgdir PREFIX=/usr
rm -r $pkgdir/usr/share
rm $pkgdir/usr/lib/*.a
rm -r $pkgdir/usr/include
rm -r $pkgdir/usr/lib/pkgconfig
}
package_doc() {
cd $pkgname-$pkgver
ckati install DESTDIR=$pkgdir PREFIX=/usr
rm -r $pkgdir/usr/bin
rm -r $pkgdir/usr/lib
rm -r $pkgdir/usr/include
}
package_dev() {
cd $pkgname-$pkgver
ckati install DESTDIR=$pkgdir PREFIX=/usr
rm $pkgdir/usr/lib/*.so
rm -r $pkgdir/usr/include
rm -r $pkgdir/usr/share
rm -r $pkgdir/usr/bin
}
license() {
cd $pkgname-$pkgver
cat COPYING
}