mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
extra/libpng: fix
This commit is contained in:
parent
8a12298557
commit
fd1c296837
1 changed files with 6 additions and 3 deletions
|
@ -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/"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue