vinix-ports / libxcvt / PKGBUILD.vile
25 lines · 24 sloc · 931 bytes · 1d216756d038c9472c177cf293cdfb258258e64e
Raw
1defpkgbuild(libxcvt,
2 #:pkgname, "libxcvt",
3 #:pkgver, "0.1.2",
4 #:pkgrel, 1,
5 #:pkgdesc, "xorg xcvt library and cvt program",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "MIT",
8 #:url, "https://www.x.org/",
9 #:depends, ["musl"],
10 #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libxcvt-0.1.2.tar.xz"],
11 #:sha256sums, ["0561690544796e25cfbd71806ba1b0d797ffe464e9796411123e79450f71db38"],
12
13 #:build, fn() {
14 run("vinix-meson", "libxcvt-0.1.2", "build")
15 run("meson", "compile", "-C", "build", "-j2")
16 },
17 #:check, fn() {
18 run("readelf", "-d", "build/lib/libxcvt.so")
19 run("vinix-run", "--library-path", "build/lib", "build/cvt/cvt", "640", "480", "60")
20 },
21 #:package, fn() {
22 run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir())
23 run("install", "-Dm644", "libxcvt-0.1.2/COPYING",
24 string-append(pkgdir(), "/usr/share/licenses/libxcvt/COPYING"))
25 })
26