iglunix/base/doas/build.sh

40 lines
790 B
Bash
Raw Normal View History

2020-12-29 15:47:35 +00:00
pkgver=6.8
pkgname=doas
pkgrel=1
2021-01-02 18:21:42 +00:00
bad="gmake"
2020-12-29 15:47:35 +00:00
ext="doc"
fetch() {
curl -L "https://github.com/Duncaen/OpenDoas/releases/download/v6.8/opendoas-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv opendoas-$pkgver $pkgname-$pkgver
cp ../build.ninja $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
2021-12-26 12:40:14 +00:00
./configure --prefix=/usr \
--without-pam
2021-01-02 18:21:42 +00:00
gmake
2020-12-29 15:47:35 +00:00
}
package() {
cd $pkgname-$pkgver
2021-01-13 08:34:27 +00:00
install -d $pkgdir/usr/bin
install -Dm4755 doas $pkgdir/usr/bin
2020-12-29 15:47:35 +00:00
}
package_doc() {
cd $pkgname-$pkgver
2021-01-13 08:34:27 +00:00
install -d $pkgdir/usr/share/man/
install -d $pkgdir/usr/share/man/man1
install -d $pkgdir/usr/share/man/man5
install -Dm644 doas.1 $pkgdir/usr/share/man/man1
install -Dm644 doas.conf.5 $pkgdir/usr/share/man/man5
2020-12-29 15:47:35 +00:00
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}