vinix-ports / xtrans / PKGBUILD.vile
27 lines · 26 sloc · 1.15 KB
Raw
1defpkgbuild(xtrans,
2 #:pkgname, "xtrans",
3 #:pkgver, "1.5.2",
4 #:pkgrel, 1,
5 #:pkgdesc, "X.Org transport implementation headers",
6 #:arch, [#:any],
7 #:license, "MIT",
8 #:url, "https://xorg.freedesktop.org/",
9 #:makedepends, ["musl"],
10 #:source, ["https://xorg.freedesktop.org/archive/individual/lib/xtrans-1.5.2.tar.xz"],
11 #:sha256sums, ["5c5cbfe34764a9131d048f03c31c19e57fb4c682d67713eab6a65541b4dff86c"],
12
13 #:build, fn() {
14 root := get-environment-variable("VPAC_MAKEPKG_ROOT")
15 run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", "CC=vinix-cc",
16 "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"),
17 string-append("PKG_CONFIG_SYSROOT_DIR=", root),
18 "xtrans-1.5.2/configure", "--build=x86_64-pc-linux-gnu", "--host=x86_64-linux-musl", "--prefix=/usr", "--disable-docs")
19 run("make")
20 },
21 #:check, fn() {
22 run("test", "-s", "xtrans.pc")
23 },
24 #:package, fn() {
25 run("make", "install", string-append("DESTDIR=", pkgdir()))
26 run("install", "-Dm644", "xtrans-1.5.2/COPYING", string-append(pkgdir(), "/usr/share/licenses/xtrans/COPYING"))
27 })
28