diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-11-28 10:06:48 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-11-28 10:08:22 +0100 |
| commit | 4f7f4b3bde1184346b4c998af638ff9143639657 (patch) | |
| tree | b0f5e1bb3218cd7c50225816ba6767f0799a3b2f | |
| parent | docs(README): update repo URL (diff) | |
| download | PKGBUILDs-qbe-git.tar.gz | |
feat: add `qbe-git` packageqbe-git
| -rw-r--r-- | .SRCINFO | 16 | ||||
| -rw-r--r-- | PKGBUILD | 42 | ||||
| -rw-r--r-- | README.md | 11 |
3 files changed, 58 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..fbcb4b1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = qbe-git + pkgdesc = Small embeddable C compiler backend + pkgver = 1.2.r62.g120f316 + pkgrel = 1 + url = http://c9x.me/compile/ + arch = x86_64 + arch = aarch64 + license = custom:MIT + makedepends = git + depends = glibc + provides = qbe + conflicts = qbe + source = qbe-git::git://c9x.me/qbe.git + sha256sums = SKIP + +pkgname = qbe-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..7ae9286 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# shellcheck disable=SC2034,SC2154,SC2164 +# Maintainer: Adrián Pérez de Castro <aperez@igalia.com> + +pkgname=qbe-git +pkgver=1.2.r62.g120f316 +pkgrel=1 +pkgdesc='Small embeddable C compiler backend' +url=http://c9x.me/compile/ +arch=(x86_64 aarch64) +license=(custom:MIT) +provides=(qbe) +conflicts=(qbe) +depends=(glibc) +makedepends=(git) +source=("${pkgname}::git://c9x.me/qbe.git") +sha256sums=('SKIP') + +pkgver () { + cd "${pkgname}" + + git describe --tags --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build () { + cd "${pkgname}" + + make +} + +check () { + cd "${pkgname}" + + make check +} + +package (){ + cd "${pkgname}" + install -Dm755 qbe "${pkgdir}/usr/bin/qbe" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -m755 -d "${pkgdir}/usr/share/doc/${pkgname}" + install -m755 -t "${pkgdir}/usr/share/doc/${pkgname}" doc/*.txt +} 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.) |
