initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

67
libpng/PKGBUILD Normal file
View File

@@ -0,0 +1,67 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=libpng
pkgver=1.6.37
_debver=1.6.37
_debrel=3
pkgrel=1
pkgdesc="A collection of routines used to create PNG format graphics files"
arch=('i686' 'x86_64')
url="http://www.libpng.org/pub/png/libpng.html"
license=('custom:libpng')
depends=('zlib' 'sh')
makedepends=('quilt')
source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz"
"https://deb.debian.org/debian/pool/main/libp/libpng1.6/libpng1.6_$_debver-$_debrel.debian.tar.xz")
sha512sums=('59e8c1059013497ae616a14c3abbe239322d3873c6ded0912403fc62fb260561768230b6ab997e2cccc3b868c09f539fd13635616b9fa0dd6279a3f63ec7e074'
'572781fe5581cbff3a140922bb611e84d44511256d766b85b4e334a47afc3ffbb7d60f96068945efb7e9e4f3d92b8beb63593dab8752d85182c6ecc26907ef37')
validpgpkeys=('8048643BA2C840F4F92A195FF54984BFA16C640F') # Glenn Randers-Pehrson (mozilla) <glennrp@gmail.com>
prepare() {
cd $pkgname-$pkgver
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
# Doesn't apply and seems unimportant
rm -v debian/patches/libpng-config.patch || true
rm -fv debian/patches/libpng-1.6.37-apng.patch || true
rm -v debian/patches/72fa126446460347a504f3d9b90f24aed1365595.patch || true
quilt push -av
fi
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--disable-static
make
}
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -d "$pkgdir/usr/share/licenses/$pkgname"
install -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd contrib/pngminus
make PNGLIB_SHARED="-L$pkgdir/usr/lib -lpng" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" png2pnm pnm2png
install -m0755 png2pnm pnm2png "$pkgdir/usr/bin/"
}
# vim:set ts=2 sw=2 et: