Added curses and samurai
This commit is contained in:
parent
9b59477f99
commit
a3d1fe4303
2 changed files with 69 additions and 0 deletions
45
pkgs/netbsd-curses/build.sh
Normal file
45
pkgs/netbsd-curses/build.sh
Normal 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
24
pkgs/samurai/build.sh
Normal 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
|
||||
}
|
Loading…
Reference in a new issue