iglunix/pkgs/linux-pam/build.sh

32 lines
563 B
Bash
Raw Normal View History

2021-01-31 11:09:14 +00:00
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 LICENSE
# cat COPYING
}