diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3711579e3837 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net> + +_pkgname=autokernel +pkgname="python-${_pkgname}-git" +pkgver=v0.9.6.r0.g43bbe35 +pkgrel=1 +pkgdesc="A tool to autodetect and manage kernel configuration options" +arch=('any') +url="https://autokernel.oddlama.org/" +license=('MIT') +depends=('python' + 'python-kconfiglib' 'python-lark-parser' 'python-dateutil' + 'python-requests' 'python-sympy') +makedepends=('python-setuptools') +source=("${pkgname}::git+https://github.com/oddlama/autokernel.git") +sha256sums=('SKIP') + +pkgver() { + cd "${pkgname}" + + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${pkgname}" + + python setup.py build +} + +package() { + cd "${pkgname}" + + python setup.py install --root="${pkgdir}" --optimize=1 + install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |