Added curses and samurai

This commit is contained in:
Ella-0 2020-12-27 19:56:27 +00:00
parent 9b59477f99
commit a3d1fe4303
2 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,45 @@
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
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir PREFIX=/
rm -r $pkgdir/share
rm $pkgdir/lib/*.a
rm -r $pkgdir/include
rm -r $pkgdir/lib/pkgconfig
}
package_doc() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir PREFIX=/
rm -r $pkgdir/bin
rm -r $pkgdir/lib
rm -r $pkgdir/include
}
package_dev() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir PREFIX=/
rm $pkgdir/lib/*.so
rm -r $pkgdir/include
rm -r $pkgdir/share
rm -r $pkgdir/bin
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

24
pkgs/samurai/build.sh Normal file
View file

@ -0,0 +1,24 @@
pkgver=1.2
pkgname=samurai
pkgrel=1
fetch() {
curl -L "https://github.com/michaelforney/samurai/releases/download/1.2/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
samu
}
package() {
cd $pkgname-$pkgver
install -d $pkgdir/bin
install -Dm755 ./samu $pkgdir/bin/
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}