You are not logged in.

#1 2020-12-05 16:03:09

diddyonlinux
Member
Registered: 2018-08-19
Posts: 10

[REQUEST] zgenom

# 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

#2 2020-12-05 16:38:31

loqs
Member
Registered: 2014-03-06
Posts: 12,949

Re: [REQUEST] zgenom

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

#3 2020-12-05 19:27:54

diddyonlinux
Member
Registered: 2018-08-19
Posts: 10

Re: [REQUEST] zgenom

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.


https://github.com/unixorn/zsh-quickstart-kit/issues/15

Offline

#4 2020-12-05 19:32:59

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 8,315

Re: [REQUEST] zgenom

You missed the point. That PKGBUILD gives you a staring point.

Offline

#5 2020-12-06 01:04:34

diddyonlinux
Member
Registered: 2018-08-19
Posts: 10

Re: [REQUEST] zgenom

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

#6 2020-12-06 01:11:26

loqs
Member
Registered: 2014-03-06
Posts: 12,949

Re: [REQUEST] zgenom

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

Board footer

Powered by FluxBB