vinix-ports / ports / pcre2 / PKGBUILD.vile
26 lines · 25 sloc · 1.04 KB · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1defpkgbuild(pcre2,
2 #:pkgname, "pcre2",
3 #:pkgver, "10.49",
4 #:pkgrel, 2,
5 #:pkgdesc, "Perl-compatible regular expressions with 8, 16 and 32-bit code units",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "BSD-3-Clause",
8 #:url, "https://www.pcre.org/",
9 #:depends, ["musl", "zlib"],
10 #:source, ["https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.49/pcre2-10.49.tar.bz2"],
11 #:sha256sums, ["53c156e1ba416a20da8e65395daa132da0d80e76910424caca3fcdae7831d384"],
12
13 #:build, fn() {
14 run("vinix-configure", "pcre2-10.49/configure",
15 "--enable-pcre2-16", "--enable-pcre2-32", "--enable-jit",
16 "--enable-pcre2grep-libz", "--disable-symvers")
17 run("make")
18 },
19 #:check, fn() {
20 run("vinix-run", "--library-path", ".libs", ".libs/pcre2grep", "-q", "^defpkgbuild",
21 string-append(startdir(), "/PKGBUILD.vile"))
22 },
23 #:package, fn() {
24 run("make", "install", string-append("DESTDIR=", pkgdir()))
25 run("install", "-Dm644", "pcre2-10.49/LICENCE.md", string-append(pkgdir(), "/usr/share/licenses/pcre2/LICENCE.md"))
26 })
27