doas: fix build
This commit is contained in:
parent
85bf643e8d
commit
969b87569e
1 changed files with 9 additions and 12 deletions
|
@ -3,9 +3,10 @@ pkgname=doas
|
|||
pkgrel=1
|
||||
bad="gmake"
|
||||
ext="doc"
|
||||
auto_cross
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/Duncaen/OpenDoas/releases/download/v6.8/opendoas-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
|
||||
curl -L "https://github.com/Duncaen/OpenDoas/releases/download/v$pkgver/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
|
||||
|
@ -15,25 +16,21 @@ build() {
|
|||
cd $pkgname-$pkgver
|
||||
./configure --prefix=/usr \
|
||||
--without-pam
|
||||
gmake
|
||||
bad --gmake gmake
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/usr/bin
|
||||
install -Dm4755 doas $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
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
|
||||
install -Dm755 doas $pkgdir/usr/bin
|
||||
chmod u+s $pkgdir/usr/bin/doas
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
||||
|
||||
backup() {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue