added libpng
This commit is contained in:
parent
b6bf357c2e
commit
b68a480e60
1 changed files with 28 additions and 0 deletions
28
pkgs/libpng/build.sh
Normal file
28
pkgs/libpng/build.sh
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
pkgname=libpng
|
||||||
|
pkgver=1.6.37
|
||||||
|
|
||||||
|
fetch() {
|
||||||
|
curl -L "https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
|
||||||
|
tar -xf $pkgname-$pkgver.tar.xz
|
||||||
|
}
|
||||||
|
|
||||||
|
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