diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 50 |
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1363f9606c4f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = aurutilsutils-git + pkgdesc = Utilities extending aurutils + pkgver = r3.b404406 + pkgrel = 1 + url = https://github.com/VorpalBlade/aurutilsutils + arch = any + license = custom:ISC + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools-scm + depends = aurutils + depends = python-appdirs + depends = python-more-itertools + depends = python-networkx + depends = python-prompt_toolkit + depends = python-yaml + depends = python-regex + provides = aurutilsutils + conflicts = aurutilsutils + source = aurutilsutils::git+https://github.com/VorpalBlade/aurutilsutils.git + md5sums = SKIP + +pkgname = aurutilsutils-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..139afdf48506 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.log +*.tar.zst +aurutilsutils/ +pkg/ +src/
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bced87be775d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Arvid Norlander <VorpalBlade@users.noreply.github.com> +pkgname=aurutilsutils-git +pkgver=r3.b404406 +pkgrel=1 +pkgdesc="Utilities extending aurutils" +arch=("any") +url="https://github.com/VorpalBlade/aurutilsutils" +license=('custom:ISC') +depends=( + 'aurutils' + 'python-appdirs' + 'python-more-itertools' + 'python-networkx' + 'python-prompt_toolkit' + 'python-yaml' + 'python-regex' +) +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-wheel' + 'python-setuptools-scm' +) +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=('aurutilsutils::git+https://github.com/VorpalBlade/aurutilsutils.git') +md5sums=('SKIP') + +# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for +# a description of each element in the source array. + +pkgver() { + cd "$srcdir/${pkgname%-git}" + #printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${pkgname%-git}" + python -m build --wheel --no-isolation +} + +package() { + cd "$srcdir/${pkgname%-git}" + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -d "$pkgdir/usr/share/zsh/site-functions/" + install -Dm 644 -t "$pkgdir/usr/share/zsh/site-functions/" completion/zsh/_* +} |