Proper README, LICENSE and PKGBUILD

This commit is contained in:
2022-03-25 17:46:41 +01:00
parent 435e01442a
commit 004c521ef5
3 changed files with 812 additions and 0 deletions

34
PKGBUILD Normal file
View File

@ -0,0 +1,34 @@
# Maintainer: Maximilian Käfer <maxi@kske.dev>
pkgname='pwgen'
pkgver=1.0.r3.90939a6
pkgrel=1
pkgdesc="Random Password Generator CLI"
arch=('any')
url="https://git.kske.dev/DieGurke/pwgen"
license=('GPL')
groups=()
depends=('binutils' 'python')
makedepends=('git')
checkupdates=()
optdepends=('bash')
provides=(pwgen)
conflicts=()
replaces=()
backup=()
options=()
source=("git+$url")
noextract=()
md5sums=('SKIP')
validpgpkeys=()
pkgver() {
cd ${pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
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"
}