From 1ab0275a4618bbc7aef0e78cffaf20348c021dc4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 15 Sep 2024 17:36:16 +0200 Subject: wcc-git -> wcc --- wcc/.gitignore | 1 + wcc/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 wcc/.gitignore create mode 100644 wcc/PKGBUILD (limited to 'wcc') diff --git a/wcc/.gitignore b/wcc/.gitignore new file mode 100644 index 000000000..b8be4e70e --- /dev/null +++ b/wcc/.gitignore @@ -0,0 +1 @@ +wsh-system-libs.patch 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 +# Contributor: Adrian Perez de Castro +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 +} -- cgit v1.2.3-70-g09d2