pkgname=git-arr
pkgver=0.30.r8.gdff4ff6
pkgrel=1
arch=('any')
license=('unknown')
source=("git+https://blitiri.com.ar/repos/git-arr?branch=next")
depends=(python-bottle python-pygments)
makedepends=('git')
pkgver() {
cd "$pkgname"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
# This thing was apparently not meant to be installed, really.
# I'll just do a "single dir under /usr/lib" stunt a la firefox.
package() {
cd "$pkgname"
mkdir -p "$pkgdir"/usr/lib/git-arr
mkdir -p "$pkgdir"/usr/bin
cp -dR --preserve=timestamps * "$pkgdir"/usr/lib/git-arr/
cat > "$pkgdir"/usr/bin/git-arr << "EOF"
#!/bin/sh
exec /usr/lib/git-arr/git-arr "$@"
EOF
chmod +x "$pkgdir"/usr/bin/git-arr
}
sha256sums=('SKIP')