diff options
| -rw-r--r-- | .SRCINFO | 17 | ||||
| -rw-r--r-- | PKGBUILD | 46 | ||||
| -rw-r--r-- | README.md | 11 |
3 files changed, 63 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..43815ad --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = harec-git + pkgdesc = The Hare compiler + pkgver = 0.24.2.rc2.r198.gf762a75 + pkgrel = 1 + url = https://harelang.org + arch = x86_64 + arch = aarch64 + license = GPL3 + makedepends = git + depends = qbe-git + depends = binutils + provides = harec + conflicts = harec + source = harec::git+https://git.sr.ht/~sircmpwn/harec + sha256sums = SKIP + +pkgname = harec-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..6b363cf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# shellcheck disable=SC2034,SC2154,SC2164 +# Maintainer: Polesznyák Márk <contact@pml68.dev> + +pkgname=harec-git +_pkgname=harec +pkgver=0.24.2.rc2.r198.gf762a75 +pkgrel=1 +pkgdesc="The Hare compiler" +url="https://harelang.org" +arch=("x86_64" "aarch64") +license=("GPL3") +provides=("harec") +conflicts=("harec") +depends=( + "qbe-git" + "binutils" +) +makedepends=("git") +source=("${pkgname%-*}::git+https://git.sr.ht/~sircmpwn/harec") +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 +} + +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.) |
