vinix-ports / ports / libxfont2 / PKGBUILD.vile
31 lines · 30 sloc · 1.11 KB · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1defpkgbuild(libxfont2,
2 #:pkgname, "libxfont2",
3 #:pkgver, "2.0.7",
4 #:pkgrel, 1,
5 #:pkgdesc, "X.Org X11 libXfont2 runtime library",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "MIT",
8 #:url, "https://www.x.org/",
9 #:depends, ["libfontenc", "freetype", "zlib"],
10 #:makedepends, ["xorgproto", "xtrans"],
11 #:source, ["https://www.x.org/pub/individual/lib/libXfont2-2.0.7.tar.xz"],
12 #:sha256sums, ["8b7b82fdeba48769b69433e8e3fbb984a5f6bf368b0d5f47abeec49de3e58efb"],
13
14 #:prepare, fn() {
15 ; Requires.private already supplies zlib's linker flags at the consumer's prefix.
16 run("sed", "-i", "s/@Z_LIBS@ //", "libXfont2-2.0.7/xfont2.pc.in")
17 },
18 #:build, fn() {
19 run("vinix-configure", "libXfont2-2.0.7/configure")
20 run("make")
21 },
22 #:check, fn() {
23 run("test", "-s", ".libs/libXfont2.so")
24 run("readelf", "-d", ".libs/libXfont2.so")
25 },
26 #:package, fn() {
27 run("make", "install", string-append("DESTDIR=", pkgdir()))
28 run("find", pkgdir(), "-name", "*.la", "-delete")
29 run("install", "-Dm644", "libXfont2-2.0.7/COPYING",
30 string-append(pkgdir(), "/usr/share/licenses/libxfont2/COPYING"))
31 })
32