diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-09-15 17:36:16 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-09-15 17:36:16 +0200 |
commit | 1ab0275a4618bbc7aef0e78cffaf20348c021dc4 (patch) | |
tree | 6162d5b2fd432098bb08af643a5f46de9037a258 /wcc/PKGBUILD | |
parent | a5e096e20d6678507d918fb2364cd35897fa3573 (diff) | |
download | archlinuxewe-1ab0275a4618bbc7aef0e78cffaf20348c021dc4.tar.xz |
wcc-git -> wcc
Diffstat (limited to 'wcc/PKGBUILD')
-rw-r--r-- | wcc/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/wcc/PKGBUILD b/wcc/PKGBUILD new file mode 100644 index 000000000..65fb08a9f --- /dev/null +++ b/wcc/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributor: Adrian Perez de Castro <aperez@igalia.com> +pkgname=wcc +pkgver=0.0.4 +pkgrel=1 +pkgdesc='The Witchcraft Compiler Collection' +url=https://github.com/endrazine/wcc +arch=(i686 x86_64) +license=(custom:MIT) +depends=(capstone glibc binutils zlib libelf linenoise lua53) +makedepends=(git make) +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz" + wsh-system-libs.patch) +b2sums=('b08196fd15657c896cac6cfa309efd082471fdb87b8146b0ee17d686c09c6246e35aae843a979fdb732fc1083b635faeba89e0d124764083fc8335043417c75a' + '18ae4ddf34ebf3d290183c41fe93d899a35d1330addff8ca9ae2be894164ba28d405fcf1eb47930355fd49065e12f3941a7cec9c8b2cb68c4cc22e29aa2dbb4e') + +prepare () { + cd "${pkgname}-${pkgver}" + patch -p0 < "${srcdir}/wsh-system-libs.patch" +} + +build () { + cd "${pkgname}-${pkgver}" + make +} + +package () { + cd "${pkgname}-${pkgver}" + mkdir -p "${pkgdir}/usr/bin" + make DESTDIR="${pkgdir}/" install + + install -Dm644 -t "${pkgdir}/usr/share/man/man1" doc/manpages/*.1 + install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE +} |