vinix-ports / git / PKGBUILD.vile
31 lines · 31 sloc · 1.63 KB · 73ce2171ae35895d87442ccbc8f43104ce63a4fc
Raw
1defpkgbuild(git,
2 #:pkgname, "git",
3 #:pkgver, "2.47.3",
4 #:pkgrel, 1,
5 #:pkgdesc, "Distributed version control with HTTP and HTTPS transport",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "GPL-2.0-only",
8 #:url, "https://git-scm.com/",
9 #:depends, ["musl", "curl", "expat", "openssl", "pcre2", "zlib"],
10 #:source, ["https://www.kernel.org/pub/software/scm/git/git-2.47.3.tar.xz",
11 "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/git/fix-t4219-with-sticky-bit.patch",
12 "config.mak", "check.py"],
13 #:sha256sums, ["9c2eb1250781b3e5bfef098572d07fdf132d67e6c065e4307332ade9819a1501",
14 "2ae5b4901a7ef98ffb35eaba1d201d97b556fca1bf4688f88f79ca24d51a8cd6",
15 "458eb38655279e40713e134ba778346524279d6787681b1f8af2c16f0fce0c76", "8bc530df1d77f35bfdd0cbbcde4860c3f0964842cfbe6c50bdf878331d73332b"],
16 #:prepare, fn() {
17 run("patch", "-d", "git-2.47.3", "-p1", "-i", string-append(srcdir(), "/fix-t4219-with-sticky-bit.patch"))
18 run("cp", "config.mak", "git-2.47.3/config.mak")
19 },
20 #:build, fn() {
21 root := get-environment-variable("VPAC_MAKEPKG_ROOT")
22 run("make", "-C", "git-2.47.3", string-append("CURL_CONFIG=", root, "/usr/bin/curl-config"), "all")
23 },
24 #:check, fn() {
25 run("python3", "check.py")
26 },
27 #:package, fn() {
28 root := get-environment-variable("VPAC_MAKEPKG_ROOT")
29 run("make", "-C", "git-2.47.3", string-append("CURL_CONFIG=", root, "/usr/bin/curl-config"), string-append("DESTDIR=", pkgdir()), "install")
30 run("install", "-Dm644", "git-2.47.3/COPYING", string-append(pkgdir(), "/usr/share/licenses/git/COPYING"))
31 })
32