new build architecture
This commit is contained in:
parent
c8003f0ca7
commit
9ec5f35cef
7
PKGBUILD
7
PKGBUILD
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user