diff options
author | Chocobo1 | 2017-08-21 13:56:34 +0800 |
---|---|---|
committer | Chocobo1 | 2017-08-21 14:05:02 +0800 |
commit | bfb489727ed8854caca15db4a55970cdf132ebbf (patch) | |
tree | 4338a1ecda53f996dd82ee229455d240caea6753 /PKGBUILD | |
download | aur-bfb489727ed8854caca15db4a55970cdf132ebbf.tar.gz |
newpkg: libpng-git 1.6.29.r2.gfbff8986e-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c3d2be9c5cd9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=libpng-git +pkgver=1.6.29.r2.gfbff8986e +pkgrel=1 +pkgdesc="The official PNG reference library" +arch=('i686' 'x86_64') +url="http://www.libpng.org/pub/png/libpng.html" +license=('Custom') +depends=('glibc' 'zlib' 'sh') +makedepends=('git') +provides=('libpng') +conflicts=('libpng') +options=('staticlibs') +source=("git+https://git.code.sf.net/p/libpng/code") +sha256sums=('SKIP') + + +pkgver() { + cd "code" + + git describe --long --tags | sed 's/^libpng-//;s/master-//;s/signed-//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "code" + + ./autogen.sh + ./configure --prefix="/usr" + make +} + +check() { + cd "code" + + make check +} + +package() { + cd "code" + + make DESTDIR="$pkgdir" install + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/libpng/LICENSE" +} |