aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-11-28 00:15:08 +0100
committerPolesznyák Márk <contact@pml68.dev>2025-11-28 10:10:33 +0100
commit69f98e41efda840512bd3135a3f269dad4044f5d (patch)
treec86e4eb49edf0f7c9e916069e26782771bfcf44b
parentdocs(README): update repo URL (diff)
downloadPKGBUILDs-69f98e41efda840512bd3135a3f269dad4044f5d.tar.gz
feat: add `hare-git` packagehare-git
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD50
-rw-r--r--README.md11
3 files changed, 68 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..847bb03
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = hare-git
+ pkgdesc = The Hare systems programming language
+ pkgver = 0.24.2.rc1.r449.g152798b
+ pkgrel = 1
+ url = https://harelang.org
+ arch = x86_64
+ arch = aarch64
+ license = MPL2
+ makedepends = scdoc
+ makedepends = git
+ depends = qbe-git
+ depends = harec-git
+ provides = hare
+ conflicts = hare
+ source = hare::git+https://git.sr.ht/~sircmpwn/hare
+ sha256sums = SKIP
+
+pkgname = hare-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..ef2244a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# shellcheck disable=SC2034,SC2154,SC2164
+# Maintainer: Polesznyák Márk <contact@pml68.dev>
+
+pkgname=hare-git
+_pkgname=hare
+pkgver=0.24.2.rc1.r449.g152798b
+pkgrel=1
+pkgdesc="The Hare systems programming language"
+url="https://harelang.org"
+arch=("x86_64" "aarch64")
+license=("MPL2")
+provides=("hare")
+conflicts=("hare")
+depends=(
+ "qbe-git"
+ "harec-git"
+)
+makedepends=(
+ "scdoc"
+ "git"
+)
+source=("${pkgname%-*}::git+https://git.sr.ht/~sircmpwn/hare")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+
+ git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+
+ cp "configs/linux.mk" config.mk
+ export LOCALVER=arch
+ make ARCH="$CARCH" PREFIX=/usr
+}
+
+check () {
+ cd "$srcdir/$_pkgname"
+
+ make ARCH="$CARCH" check
+ HAREPATH=. .bin/hare test
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+
+ make ARCH="$CARCH" PREFIX=/usr DESTDIR="$pkgdir" install
+}
diff --git a/README.md b/README.md
deleted file mode 100644
index a2ee7a1..0000000
--- a/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# PKGBUILDs
-
-My personal PKGBUILDs.
-
-## Usage
-
-For available packages, check out the different branches; Each one contains a single package. For installation of a selected package, clone it with
-```sh
-$ git clone --branch <package_name> --single-branch https://git.sr.ht/~pml68/PKGBUILDs <package_name>
-```
-Then you can enter the directory and install with your preferred tool (`makepkg`, `yay` etc.)