vinix-ports / pixman / PKGBUILD.vile
25 lines · 24 sloc · 982 bytes · 49e9ab03a3bceb1ace91e09ae1eef27ba692ca24
Raw
1defpkgbuild(pixman,
2 #:pkgname, "pixman",
3 #:pkgver, "0.43.4",
4 #:pkgrel, 1,
5 #:pkgdesc, "Low-level pixel manipulation library",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "MIT",
8 #:url, "https://www.x.org/",
9 #:depends, ["musl"],
10 #:makedepends, ["linux-headers", "libpng"],
11 #:source, ["https://xorg.freedesktop.org/archive/individual/lib/pixman-0.43.4.tar.xz"],
12 #:sha256sums, ["48d8539f35488d694a2fef3ce17394d1153ed4e71c05d1e621904d574be5df19"],
13
14 #:build, fn() {
15 run("vinix-meson", "pixman-0.43.4", "build", "-Ddefault_library=both", "-Dlibpng=enabled", "-Ddemos=disabled", "-Dtests=disabled")
16 run("meson", "compile", "-C", "build", "-j2")
17 },
18 #:check, fn() {
19 run("readelf", "-d", "build/pixman/libpixman-1.so")
20 },
21 #:package, fn() {
22 run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir())
23 run("install", "-Dm644", "pixman-0.43.4/COPYING",
24 string-append(pkgdir(), "/usr/share/licenses/pixman/COPYING"))
25 })
26