summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f4c14f103cd13e9684d31a9525642c3f544653e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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"
}