updated Makefile and PKGBUILD

This commit is contained in:
wt
2024-12-26 16:07:33 +07:00
parent ef4595a81b
commit 192b426e50
3 changed files with 25 additions and 34 deletions
+11 -30
View File
@@ -1,44 +1,25 @@
# Maintainer: Tola Mironcenko <mironcenkotola@gmail.com>
pkgname=pwdgen
pkgname=pwdgen-git
_pkgname="${pkgname%-git}"
_reponame=pwdgen
pkgver=1.0
pkgrel=1
epoch=
pkgdesc=""
pkgdesc="Password generator"
arch=('x86_64')
url=""
url="https://gitea.home.com:3000/TolaMironcenko/pwdgen"
conflicts=("$_pkgname")
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
noextract=()
md5sums=()
validpgpkeys=()
#source=("git+https://github.com/TolaMironcenko/pwdgen.git")
#prepare() {
# cd $pkgname
# mkdir -v out
#}
source=("git+$url.git")
cksums=('SKIP')
build() {
#cd $pkgname
cd $HOME/Documents/c/pwdgen
[ ! -d out ] && mkdir out
cd $_reponame
make clean
make
}
package() {
#cd $pkgname
cd $HOME/Documents/c/pwdgen
cd $_reponame
mkdir -p $pkgdir/usr/local/bin
make DESTDIR="$pkgdir/usr/local/bin/" install
}