Skip to content

Instantly share code, notes, and snippets.

@xee5ch
Last active March 16, 2016 19:13
Show Gist options
  • Save xee5ch/31064e8d2807939eca61 to your computer and use it in GitHub Desktop.
Save xee5ch/31064e8d2807939eca61 to your computer and use it in GitHub Desktop.
A custom Arch AUR PKGBUILD file for use with xonsh-git, but with the andor branch.
# Maintainer: megadriver <megadriver at gmx dot com>
pkgname=xonsh-git
_gitname=xonsh
pkgver=0.2.6.r5.g54a11e7
pkgrel=1
pkgdesc="A Python-ish, BASHwards-compatible shell"
url="http://github.com/scopatz/xonsh"
arch=('any')
license=('FreeBSD')
depends=('python' 'python-ply')
conflicts=('xonsh')
source=("git://github.com/scopatz/$_gitname.git#branch=andor")
install=xonsh.install
sha256sums=('SKIP')
pkgver() {
cd "$_gitname"
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "$srcdir/$_gitname"
python setup.py install --root=$pkgdir
install -D -m644 license "$pkgdir/usr/share/licenses/$_gitname/license"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment