summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d9f4eb4db1f3c067347414e64f951aa9012001b (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
# Maintainer: Philip Goto <philip.goto@gmail.com>

pkgname=libspng-git
pkgver=0.4.1.r2.gdf82205
pkgrel=1
pkgdesc="C library for reading and writing PNG format files with a focus on security and ease of use"
arch=(i686 x86_64 armv6h armv7h)
url="https://libspng.org/"
license=('BSD')
depends=(zlib)
makedepends=(git meson)
#checkdepends=(libpng)
provides=(libspng)
conflicts=(libspng)
source=("git+https://gitlab.com/randy408/libspng.git")
md5sums=(SKIP)

pkgver() {
    cd libspng
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    arch-meson build libspng
    ninja -C build
}

#check() {
#    cd build
#    meson configure -Ddev_build=true
#    ninja test
#}

package() {
    DESTDIR="${pkgdir}/" ninja -C build install
    install -D "libspng/LICENSE" "${pkgdir}/usr/share/licenses/libspng/LICENSE"
}