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