vinix-ports / isl25 / PKGBUILD.vile
26 lines · 26 sloc · 1.23 KB · 704e7dee1b6b27840f3eb83a02f28e853435c47f
Raw
1defpkgbuild(isl25,
2 #:pkgname, "isl25",
3 #:pkgver, "0.25",
4 #:pkgrel, 1,
5 #:pkgdesc, "Integer set and relation library with the libisl.so.23 ABI",
6 #:arch, [#:x86-64, #:aarch64],
7 #:url, "https://libisl.sourceforge.io/",
8 #:license, "MIT",
9 #:depends, ["musl", "gmp"],
10 #:source, ["https://distfiles.alpinelinux.org/distfiles/v3.21/isl-0.25.tar.bz2", "count.c"],
11 #:sha256sums, ["4305c54d4eebc4bf3ce365af85f04984ef5aa97a52e01128445e26da5b1f467a", "6d9c89822656eb1ae360cdb00b37774cd1cbe790ec5028f64209947404bee201"],
12 #:build, fn() {
13 run("vinix-configure", "isl-0.25/configure", "--with-int=gmp", "--disable-static")
14 run("make", "gitversion.h")
15 run("make", "libisl.la")
16 },
17 #:check, fn() {
18 run("vinix-cc", "-Iinclude", "-Iisl-0.25/include", "count.c", "-L.libs", "-lisl", "-lgmp", "-o", "count")
19 run("vinix-run", "--library-path", ".libs", "./count")
20 },
21 #:package, fn() {
22 run("make", "install-libLTLIBRARIES", "install-pkgincludeHEADERS", "install-nodist_pkgincludeHEADERS",
23 "install-pkgconfigDATA", string-append("DESTDIR=", pkgdir()))
24 run("find", pkgdir(), "-name", "*.la", "-delete")
25 run("install", "-Dm644", "isl-0.25/LICENSE", string-append(pkgdir(), "/usr/share/licenses/isl25/LICENSE"))
26 })
27