Username: Password: Remember me
_pkgname=trizen-git
pkgname=trizen-git
pkgver=2.0.2_kcp.gd94fead
pkgrel=1
pkgdesc="Trizen CCR package manager: lightweight pacman wrapper and KCP helper (-git version)."
arch=('x86_64')
url="https://sourceforge.net/p/trizen-kcp-ccr"
license=('GPL3')
 
depends=(
         'git'
         'ccr'
         'yajl'
         'perl>=5.18.0-1'
         'pacman'
        )
 
source=('git+https://git.code.sf.net/p/trizen-kcp-ccr/projects')
sha256sums=('SKIP')
 
pkgver() {
    mkdir -pp trizen-kcp-ccr trizen-kcp-ccr-projects projects "$_pkgname" 
    cp -rf trizen-kcp-ccr/* trizen-kcp-ccr-projects
    cp -rf trizen-kcp-ccr/* projects
    cp -rf trizen-kcp-ccr-projects/* projects
    cp -rf projects/* "$_pkgname"
    cp -rf trizen-kcp-ccr-projects/* "$_pkgname"
    cp -rf trizen-kcp-ccr/* "$_pkgname"
    cd "$_pkgname"
    git describe --always | sed -e 's|-|.|g'
}
 
package() {
  mkdir -pp trizen-kcp-ccr trizen-kcp-ccr-projects projects "$_pkgname" 
  cp -rf projects/* trizen-kcp-ccr-projects
  cp -rf trizen-kcp-ccr-projects/* trizen-kcp-ccr
  cp -rf projects/* "$_pkgname"
  cp -rf trizen-kcp-ccr-projects/* "$_pkgname"
  cp -rf trizen-kcp-ccr/* "$_pkgname"
  cd "$_pkgname"
  install -m 775 -D "trizen-ccr"  "$_pkgname/usr/bin/trizen"
  install -m 775 -D "trizen.1" "$_pkgname/usr/share/man/man1/trizen.1"
  install -m 775 -D "zsh.completion" "$_pkgname/usr/share/zsh/site-functions/_trizen"
  install -m 775 -D "bash.ccr.completion" "$_pkgname/usr/share/bash-completion/completions/trizen"
  install -m 775 -D "fish.completion" "$_pkgname/usr/share/fish/vendor_completions.d/trizen.fish"
}