diff --git a/pkgs/patchelf/build.sh b/pkgs/patchelf/build.sh new file mode 100644 index 0000000..a33438e --- /dev/null +++ b/pkgs/patchelf/build.sh @@ -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 +}