libpng/PKGBUILD
2024-11-17 16:54:01 +08:00

38 lines
992 B
Bash

# Maintainer: Future Linux Team <futurelinux@163.com>
pkgname=libpng
pkgver=1.6.42
pkgrel=1
pkgdesc="A collection of routines used to create PNG format graphics files"
arch=('x86_64')
url="http://www.libpng.org/pub/png/libpng.html"
license=('custom')
depends=('zlib' 'bash')
source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.xz
https://downloads.sourceforge.net/sourceforge/${pkgname}-apng/${pkgname}-1.6.40-apng.patch.gz)
sha256sums=(c919dbc11f4c03b05aba3f8884d8eb7adfe3572ad228af972bb60057bdb48450
0a3ca46482938d8d6c722662bed2c7ee0c65a1b5624444b3ced21ad8d356db2f)
prepare() {
cd ${pkgname}-${pkgver}
gzip -cd ${srcdir}/${pkgname}-1.6.40-apng.patch.gz | patch -p1
}
build() {
cd ${pkgname}-${pkgver}
${CONFIGURE} --disable-static
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
cp -v README libpng-manual.txt ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
}