summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKaizhao Zhang2019-05-23 15:51:56 +0800
committerKaizhao Zhang2019-05-23 15:51:56 +0800
commit70c51f0811c88ce22583303957de45621967f3dc (patch)
treec790312992013690d165ecf650dcae71c8eb60d2 /PKGBUILD
downloadaur-70c51f0811c88ce22583303957de45621967f3dc.tar.gz
Initial import with version 0.5.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6f4c14f103c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>
+
+_srcname=ShivyC
+
+pkgname=shivyc
+pkgver=0.5.0
+pkgrel=1
+pkgdesc="A C compiler written in Python"
+arch=('x86_64')
+url="https://github.com/ShivamSarodia/ShivyC"
+license=('MIT')
+depends=(
+ 'python>=3.6'
+)
+makedepends=('python-setuptools')
+options=(!emptydirs)
+source=(
+ "${url}/archive/${pkgver}.tar.gz"
+)
+sha256sums=(
+ '693d3be4d923f1c1d77cdae80d9ce856a3221891769f74907d8dde1ae65dcaca'
+)
+
+build() {
+ cd "${srcdir}/${_srcname}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/${_srcname}-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+ install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+ install -Dm644 demo.gif "${pkgdir}/usr/share/doc/${pkgname}/demo.gif"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}