iglunix/base/doas/build.sh

37 lines
612 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"
2022-04-22 20:53:43 +00:00
auto_cross
2020-12-29 15:47:35 +00:00
fetch() {
2022-04-22 20:53:43 +00:00
curl -L "https://github.com/Duncaen/OpenDoas/releases/download/v$pkgver/opendoas-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
2020-12-29 15:47:35 +00:00
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
2022-04-22 20:53:43 +00:00
bad --gmake 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
2022-04-22 20:53:43 +00:00
install -Dm755 doas $pkgdir/usr/bin
chmod u+s $pkgdir/usr/bin/doas
2020-12-29 15:47:35 +00:00
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}
2022-04-22 20:53:43 +00:00
backup() {
return
}