extra/libpng: fix

This commit is contained in:
Kevin Mihelich 2019-04-18 00:43:32 +00:00
parent 8a12298557
commit fd1c296837

View file

@ -41,15 +41,18 @@ build() {
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd contrib/pngminus
make PNGLIB="-L$pkgdir/usr/lib -lpng" -f makefile.std png2pnm pnm2png
install -m755 png2pnm pnm2png "$pkgdir/usr/bin/"
install -D -m644 ../../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
make PNGLIB_SHARED="-L$pkgdir/usr/lib -lpng" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" png2pnm pnm2png
install -m0755 png2pnm pnm2png "$pkgdir/usr/bin/"
}