2020-11-12 17:13:16 +01:00
|
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# Contributor: dorphell <dorphell@archlinux.org>
|
|
|
|
# Contributor: Travis Willard <travis@archlinux.org>
|
|
|
|
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
|
|
|
|
|
|
|
|
_pkgname=libpng
|
2022-03-07 10:50:48 +01:00
|
|
|
pkgname=static-compat-$_pkgname
|
2024-02-09 22:26:34 +01:00
|
|
|
pkgver=1.6.42
|
2023-07-22 18:00:49 +02:00
|
|
|
pkgrel=1
|
2022-11-28 21:20:18 +01:00
|
|
|
pkgdesc='A collection of routines used to create PNG format graphics files'
|
2020-11-12 17:13:16 +01:00
|
|
|
arch=('x86_64')
|
2022-11-28 21:20:18 +01:00
|
|
|
url='http://www.libpng.org/pub/png/libpng.html'
|
2020-11-12 17:13:16 +01:00
|
|
|
license=('custom')
|
2022-03-07 10:50:48 +01:00
|
|
|
depends=('static-compat-zlib' 'sh')
|
|
|
|
makedepends=('static-compat-configure')
|
2020-11-12 17:13:16 +01:00
|
|
|
options=(!emptydirs staticlibs)
|
|
|
|
validpgpkeys=('8048643BA2C840F4F92A195FF54984BFA16C640F') # Glenn Randers-Pehrson (mozilla) <glennrp@gmail.com>
|
|
|
|
source=("https://downloads.sourceforge.net/sourceforge/$_pkgname/$_pkgname-$pkgver.tar.xz")
|
2024-02-09 22:26:34 +01:00
|
|
|
sha256sums=('c919dbc11f4c03b05aba3f8884d8eb7adfe3572ad228af972bb60057bdb48450')
|
2020-11-12 17:13:16 +01:00
|
|
|
|
|
|
|
build() {
|
2022-03-07 10:50:48 +01:00
|
|
|
source static-compat-environment
|
2020-11-12 17:13:16 +01:00
|
|
|
cd $_pkgname-$pkgver
|
2022-03-07 10:50:48 +01:00
|
|
|
static-compat-configure \
|
2020-11-12 17:13:16 +01:00
|
|
|
--disable-shared \
|
|
|
|
--enable-static
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2022-03-07 10:50:48 +01:00
|
|
|
source static-compat-environment
|
2020-11-12 17:13:16 +01:00
|
|
|
cd $_pkgname-$pkgver
|
|
|
|
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-03-07 10:50:48 +01:00
|
|
|
source static-compat-environment
|
2020-11-12 17:13:16 +01:00
|
|
|
cd $_pkgname-$pkgver
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
2022-03-07 10:50:48 +01:00
|
|
|
rm -r "$pkgdir/$static_compat_prefix"/share/man
|
2020-11-12 17:13:16 +01:00
|
|
|
|
|
|
|
install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|