iglunix/old/linux-pam/build.sh
2021-07-31 12:09:49 +00:00

30 lines
549 B
Bash

pkgname=linux-pam
pkgver=1.5.1
fetch() {
curl -L "https://github.com/linux-pam/linux-pam/releases/download/v1.5.1/Linux-PAM-1.5.1.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv Linux-PAM-$pkgver $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl \
--libdir=/usr/lib \
--sbindir=/usr/sbin
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat COPYING
}