iglunix/pkgs/netbsd-curses/build.sh

46 lines
811 B
Bash
Raw Normal View History

2020-12-27 19:56:27 +00:00
pkgver=0.3.1
pkgname=netbsd-curses
bad=""
2021-01-31 11:09:14 +00:00
deps="musl"
2020-12-27 19:56:27 +00:00
ext="doc:dev"
fetch() {
2021-01-31 11:09:14 +00:00
curl -L http://github.com/sabotage-linux/netbsd-curses/archive/v$pkgver.tar.gz -o $pkgname-$pkgver.tar.gz
2020-12-27 19:56:27 +00:00
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
2020-12-28 13:54:13 +00:00
ckati
2020-12-27 19:56:27 +00:00
}
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
2020-12-27 19:56:27 +00:00
}
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
2020-12-27 19:56:27 +00:00
}
package_dev() {
cd $pkgname-$pkgver
ckati install DESTDIR=$pkgdir PREFIX=/usr
rm $pkgdir/usr/lib/*.so
rm -r $pkgdir/usr/share
rm -r $pkgdir/usr/bin
2020-12-27 19:56:27 +00:00
}
license() {
cd $pkgname-$pkgver
cat COPYING
}