You are not logged in.
# Maintainer: I don't know how to maintain this this is a request for someone to help
pkgname=zgenom-git
_packagename=${pkgname%-git}
pkgver=I can't find the version number on github
pkgrel=1
pkgdesc="A lightweight yet powerful plugin manager for Zsh."
arch=("any")
url="https://github.com/jandamm/zgenom"
license=("BSD")
depends=("zsh")
makedepends=("git")
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("git+${url}")
md5sums=("SKIP")
### Not sure what goes here I did my best on this one hope this is enough to get it into the Repo.
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
Offline
Have you looked at https://aur.archlinux.org/packages/zgen-git/ as zgenom appears to be a fork of zgen.
Edit:
# Maintainer: I don't know how to maintain this this is a request for someone to help
pkgname=zgenom-git
_packagename=${pkgname%-git}
pkgver=r189.650b4db
pkgrel=1
pkgdesc="A lightweight yet powerful plugin manager for Zsh."
arch=("any")
url="https://github.com/jandamm/zgenom"
license=("BSD")
depends=("zsh")
makedepends=("git")
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("$pkgname::git+${url}")
md5sums=("SKIP")
pkgver() {
cd "$pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd $pkgname
install -Dm644 {zgen,zgenom}.zsh -t ${pkgdir}/usr/share/zsh/share/
install -Dm644 {_zgen,_zgenom} -t ${pkgdir}/usr/share/zsh/site-functions/
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
Last edited by loqs (2020-12-05 17:31:28)
Offline
Yes I have that installed but.....
zgenom is getting maintenance, and relevant to this issue, optionally adds precompilation for the zsh plugin files that it loads. If you're interested in trying it, please switch your clone to the switch-to-zgenom branch, and comment here or on the PR (#88) if you run into issues.
Offline
You missed the point. That PKGBUILD gives you a staring point.
Offline
I used it to get as far as a I did in my first post. Are you saying that the rest should be pretty much the same.
Offline
Did you try the PKGBUILD you posted or the one I posted?
If you were basing your PKGBUILD off https://aur.archlinux.org/cgit/aur.git/ … h=zgen-git why did you remove the pkgver function, add in a generic build function for an autotools based project and change the package function to be equally generic?
Offline