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