diff options
author | KokaKiwi | 2020-12-19 20:05:07 +0100 |
---|---|---|
committer | KokaKiwi | 2020-12-19 20:05:34 +0100 |
commit | 2014689995f5b944a51ac5a4d69fbfc2243355a1 (patch) | |
tree | 66465151fe487bc2f3e40b781715c63bd180ee4b | |
download | aur-python-autokernel-git.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..184ec03770aa --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python-autokernel-git + pkgdesc = A tool to autodetect and manage kernel configuration options + pkgver = v0.9.6.r0.g43bbe35 + pkgrel = 1 + url = https://autokernel.oddlama.org/ + arch = any + license = MIT + makedepends = python-setuptools + depends = python + depends = python-kconfiglib + depends = python-lark-parser + depends = python-dateutil + depends = python-requests + depends = python-sympy + source = python-autokernel-git::git+https://github.com/oddlama/autokernel.git + sha256sums = SKIP + +pkgname = python-autokernel-git + 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" +} |