summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af47ad6d87dbd5e16627354f41655337313efa03 (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
36
37
38
39
40
41
# Maintainer: Komeil Parseh <ahmdparsh129@gmail.com>

pkgname=hascal-git
_gitname=hascal
pkgdesc='Hascal is a general purpose and open source programming
language designed to build optimal, maintainable, reliable and efficient software.'
url='https://github.com/hascal/hascal'
arch=('i686' 'x86_64')
pkgrel=1
pkgver=v1.3.9.r34.g24b4ab5
license=('MIT')
depends=('gcc' 'python' 'python-wheel' 'python-colorama' 'python-requests' )
makedepends=('git' 'pyinstaller')
provides=("${pkgname%}")
conflicts=("${pkgname%}")
source=("git+https://github.com/hascal/hascal.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_gitname"
    git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build(){
	cd "$srcdir/$_gitname"
	make build
}

package() {
    install -d "${pkgdir}/usr/share/licenses/${_gitname}"
    install -d "${pkgdir}/usr/lib/hlib"
    install -d "${pkgdir}/usr/bin"


    install -m644 "${srcdir}/${_gitname}/LICENSE" "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"

    cp -r "${srcdir}/${_gitname}/dist/hlib"* "${pkgdir}/usr/lib/hlib" -R

    install -m755 "${srcdir}/${_gitname}/dist/${_gitname}" "${pkgdir}/usr/bin/hascal"

}