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

pkgname=libspng
pkgver=0.4.0
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=(meson)
#checkdepends=(libpng)
conflicts=(libspng-git)
source=("https://gitlab.com/randy408/libspng/-/archive/v${pkgver}/libspng-v${pkgver}.tar.gz")
md5sums=('ae152da25d1cce7c392a0c1e81d22cb4')

build() {
    cd libspng-v${pkgver}
    rm -rf build
    arch-meson build
    ninja -C build
}

#check() {
#    cd libspng-v${pkgver}
#    meson configure -Ddev_build=true build
#    ninja test -C build
#}

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