iglunix/base/netbsd-curses/build.sh

33 lines
572 B
Bash
Raw Normal View History

2021-02-04 22:30:41 +00:00
pkgver=master
2020-12-27 19:56:27 +00:00
pkgname=netbsd-curses
2022-03-13 12:03:35 +00:00
bad="gmake"
2021-01-31 11:09:14 +00:00
deps="musl"
2020-12-27 19:56:27 +00:00
ext="doc:dev"
2022-04-21 11:22:58 +00:00
auto_cross
2020-12-27 19:56:27 +00:00
fetch() {
2021-02-04 22:30:41 +00:00
curl -L "https://github.com/sabotage-linux/netbsd-curses/archive/master.tar.gz" -o $pkgname-$pkgver.tar.gz
2020-12-27 19:56:27 +00:00
tar -xf $pkgname-$pkgver.tar.gz
2022-04-21 11:22:58 +00:00
cd $pkgname-$pkgver
patch -p1 < ../../cross.patch
2020-12-27 19:56:27 +00:00
}
build() {
cd $pkgname-$pkgver
2022-04-21 11:24:25 +00:00
bad --gmake gmake PREFIX=/usr HOSTCC=cc CROSSCOMPILING=1 LDFLAGS_HOST= CFLAGS_HOST=
2020-12-27 19:56:27 +00:00
}
package() {
cd $pkgname-$pkgver
2022-03-13 12:03:35 +00:00
bad --gmake gmake install DESTDIR=$pkgdir PREFIX=/usr
2020-12-27 19:56:27 +00:00
}
2022-03-13 12:03:35 +00:00
backup() {
return
2020-12-27 19:56:27 +00:00
}
license() {
cd $pkgname-$pkgver
cat COPYING
}