vinix-ports / ports / expat / PKGBUILD.vile
26 lines · 25 sloc · 997 bytes · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1defpkgbuild(expat,
2 #:pkgname, "expat",
3 #:pkgver, "2.11.0",
4 #:pkgrel, 2,
5 #:pkgdesc, "Expat XML parser, headers and xmlwf",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "MIT",
8 #:url, "https://libexpat.github.io/",
9 #:depends, ["musl"],
10 #:source, ["https://github.com/libexpat/libexpat/releases/download/R_2_11_0/expat-2.11.0.tar.xz"],
11 #:sha256sums, ["61e7614b602201c28a189dafee78f5bceaee192bbde46a930752ff09cf5542fa"],
12
13 #:build, fn() {
14 run("vinix-configure", "expat-2.11.0/configure",
15 "--without-docbook", "--without-examples", "--without-tests")
16 run("make")
17 },
18 #:check, fn() {
19 run("vinix-run", "--library-path", "lib/.libs",
20 "xmlwf/.libs/xmlwf", "expat-2.11.0/doc/xmlwf.xml")
21 },
22 #:package, fn() {
23 run("make", "install", string-append("DESTDIR=", pkgdir()))
24 run("rm", string-append(pkgdir(), "/usr/lib/libexpat.la"))
25 run("install", "-Dm644", "expat-2.11.0/COPYING", string-append(pkgdir(), "/usr/share/licenses/expat/COPYING"))
26 })
27