new build architecture

This commit is contained in:
Maximilian P. Käfer 2022-03-25 19:32:03 +01:00
parent c8003f0ca7
commit 9ec5f35cef
Signed by: mpk
GPG Key ID: 035869C949377C5C
2 changed files with 6 additions and 10 deletions

View File

@ -8,7 +8,7 @@ url="https://git.kske.dev/DieGurke/pwgen"
license=('GPL')
groups=()
depends=('binutils' 'python')
makedepends=('git')
makedepends=('git' 'python-setuptools')
checkupdates=()
optdepends=('bash')
provides=(pwgen)
@ -26,9 +26,14 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
python -m setuptools.launch setup.py build
}
package() {
cd ${pkgname}
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm755 pwgen.sh "${pkgdir}/usr/bin/pwgen"
python setup.py install --root="$pkgdir" --optimize=1
}

View File

@ -1,9 +0,0 @@
setup(
name='pwgen',
version='1.0',
description='Random Password Generator Module',
author="Maximilian Käfer",
author_email='maxi@kske.dev',
packages=['pwgen'],
install_requires=['wheel'],
)