Added patchelf

This commit is contained in:
Ella-0 2021-07-31 11:31:33 +00:00
parent f7d8864d91
commit 64d1875926

29
pkgs/patchelf/build.sh Normal file
View file

@ -0,0 +1,29 @@
pkgname=patchelf
pkgver=0.12
fetch() {
curl -L "https://github.com/NixOS/patchelf/releases/download/0.12/patchelf-$pkgver.tar.bz2" -o $pkgname-$pkgver.tar.bz2
tar -xf $pkgname-$pkgver.tar.bz2
mv $pkgname-$pkgver*/ $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=$TRIPLE \
--host=$TRIPLE
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}