Added patchelf
This commit is contained in:
parent
f7d8864d91
commit
64d1875926
1 changed files with 29 additions and 0 deletions
29
pkgs/patchelf/build.sh
Normal file
29
pkgs/patchelf/build.sh
Normal 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
|
||||
}
|
Loading…
Reference in a new issue