main/libpng: clarify license and improve abuild

This commit is contained in:
prspkt 2018-04-01 14:39:40 +00:00 committed by Jakub Jirutka
parent 505ff7688a
commit c561d0ee3a

View File

@ -4,9 +4,9 @@ pkgname=libpng
pkgver=1.6.34 pkgver=1.6.34
pkgrel=1 pkgrel=1
pkgdesc="Portable Network Graphics library" pkgdesc="Portable Network Graphics library"
url="http://www.libpng.org/" url="http://www.libpng.org"
arch="all" arch="all"
license="GPL" license="Libpng"
depends="" depends=""
depends_dev="zlib-dev" depends_dev="zlib-dev"
makedepends="$depends_dev gawk autoconf automake libtool" makedepends="$depends_dev gawk autoconf automake libtool"
@ -38,14 +38,13 @@ build() {
} }
check() { check() {
make -C "$builddir" check cd "$builddir"
make check
} }
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
install -Dm644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
rm -f "$pkgdir"/usr/lib/*.la rm -f "$pkgdir"/usr/lib/*.la
} }