blob: c3d2be9c5cd9daad7e626de0b06c4099f464f668 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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"
}
|