Date: Thursday, September 15, 2022 @ 06:01:46
  Author: eworm
Revision: 456120

archrelease: copy trunk to testing-x86_64

Added:
  libpng/repos/testing-x86_64/
  libpng/repos/testing-x86_64/PKGBUILD
    (from rev 456119, libpng/trunk/PKGBUILD)
  libpng/repos/testing-x86_64/keys/

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: libpng/repos/testing-x86_64/PKGBUILD (from rev 456119, 
libpng/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2022-09-15 06:01:46 UTC (rev 456120)
@@ -0,0 +1,43 @@
+# Maintainer: Jan de Groot <[email protected]>
+# Contributor: dorphell <[email protected]>
+# Contributor: Travis Willard <[email protected]>
+# Contributor: Douglas Soares de Andrade <[email protected]>
+
+pkgname=libpng
+pkgver=1.6.38
+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' 'sh')
+validpgpkeys=('8048643BA2C840F4F92A195FF54984BFA16C640F') # Glenn 
Randers-Pehrson (mozilla) <[email protected]>
+source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz";)
+sha256sums=('b3683e8b8111ebf6f1ac004ebb6b0c975cd310ec469d98364388e9cedbfa68be')
+
+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 -m0644 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/"
+}

Reply via email to