added libpng

This commit is contained in:
Ella-0 2021-07-31 11:55:49 +00:00
parent b6bf357c2e
commit b68a480e60

28
pkgs/libpng/build.sh Normal file
View 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
}