From 8c501349ecf8dbb72ed2852d3590374739067e62 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sun, 17 Nov 2024 16:54:01 +0800 Subject: [PATCH] libpng 1.6.42-1 --- PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..eee33bf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Future Linux Team + +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} +}