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
|
pkgrel=1
|
||||||
bad="gmake"
|
bad="gmake"
|
||||||
ext="doc"
|
ext="doc"
|
||||||
|
auto_cross
|
||||||
|
|
||||||
fetch() {
|
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
|
tar -xf $pkgname-$pkgver.tar.xz
|
||||||
mv opendoas-$pkgver $pkgname-$pkgver
|
mv opendoas-$pkgver $pkgname-$pkgver
|
||||||
cp ../build.ninja $pkgname-$pkgver
|
cp ../build.ninja $pkgname-$pkgver
|
||||||
|
@ -15,25 +16,21 @@ build() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--without-pam
|
--without-pam
|
||||||
gmake
|
bad --gmake gmake
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
install -d $pkgdir/usr/bin
|
install -d $pkgdir/usr/bin
|
||||||
install -Dm4755 doas $pkgdir/usr/bin
|
install -Dm755 doas $pkgdir/usr/bin
|
||||||
}
|
chmod u+s $pkgdir/usr/bin/doas
|
||||||
|
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
license() {
|
license() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
cat LICENSE
|
cat LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
backup() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue