vinix-ports / ports / libxv / PKGBUILD.vile
27 lines · 26 sloc · 954 bytes · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1defpkgbuild(libxv,
2 #:pkgname, "libxv",
3 #:pkgver, "1.0.12",
4 #:pkgrel, 1,
5 #:pkgdesc, "X11 Video extension library",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "MIT",
8 #:url, "https://www.x.org/",
9 #:depends, ["libx11", "libxext"],
10 #:makedepends, ["xorgproto"],
11 #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libXv-1.0.12.tar.xz"],
12 #:sha256sums, ["aaf7fa09f689f7a2000fe493c0d64d1487a1210db154053e9e2336b860c63848"],
13
14 #:build, fn() {
15 run("vinix-configure", "libXv-1.0.12/configure", "--disable-malloc0returnsnull")
16 run("make")
17 },
18 #:check, fn() {
19 run("test", "-s", "src/.libs/libXv.so")
20 run("readelf", "-d", "src/.libs/libXv.so")
21 },
22 #:package, fn() {
23 run("make", "install", string-append("DESTDIR=", pkgdir()))
24 run("find", pkgdir(), "-name", "*.la", "-delete")
25 run("install", "-Dm644", "libXv-1.0.12/COPYING",
26 string-append(pkgdir(), "/usr/share/licenses/libxv/COPYING"))
27 })
28