summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29286a3db4688f2082a5886ff2b970b190ce8269 (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
# Maintainer: Keyboard Slayer <github.com/keyboard-slayer>
# Maintainer: Monax (SMNX) <github.com/sleepy-monax>

pkgname=cutekit-git
pkgver=r90.004a5f4
pkgrel=1
pkgdesc="An operating system development kit."
arch=('any')
url="https://github.com/cute-engineering/cutekit"
license=('MIT')
depends=('python' 'ninja' 'python-requests' 'python-graphviz' 'graphviz' 'git')
makedepends=('git' 'python-setuptools')
optdepends=('clang: for compiling C/C++ code'
            'llvm: tools for C/C++ development'
            'lld: for linking'
            'nasm: for compiling assembly code')
source=("${pkgname}::git+https://github.com/cute-engineering/cutekit.git#branch=dev")
sha256sums=('SKIP')
provides=('cutekit')
conflicts=('cutekit')

pkgver() {
    cd "$srcdir/$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/$pkgname"
	python setup.py build
}

package() {
	cd "$srcdir/$pkgname"
    python -c "print('hi')"
    python setup.py install --root="${pkgdir}" --skip-build --optimize=1
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}