diff options
author | Andy Weidenbaum | 2015-06-09 11:41:58 -0700 |
---|---|---|
committer | Andy Weidenbaum | 2015-06-09 11:41:58 -0700 |
commit | 0ff034b8a1cacdc91aedb30d749342031a414527 (patch) | |
tree | bad3b3b53a1a23687399357b3fb2d877fce38d09 /PKGBUILD | |
download | aur-python2-vex.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8d638adf99f4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=python2-vex +pkgver=0.0.18 +pkgrel=1 +pkgdesc="Run commands in a virtualenv without modifying the current shell environment" +arch=('any') +depends=('python2') +makedepends=('python2-setuptools') +url="https://github.com/sashahart/vex" +license=('MIT') +options=(!emptydirs) +source=(https://pypi.python.org/packages/source/v/${pkgname#python2-}/${pkgname#python2-}-$pkgver.tar.gz) +md5sums=('15f42bb9ca100c8f7a377e1a8f21c86a') +sha256sums=('f8215e982e32bf7d4f8ca39a4aced64060ba198389163b785bd51b6bb311c1d4') + +build() { + cd "$srcdir/${pkgname#python2-}-$pkgver" + + msg 'Building...' + python2 setup.py build +} + +package() { + cd "$srcdir/${pkgname#python2-}-$pkgver" + + msg 'Installing...' + python2 setup.py install --root="$pkgdir" --optimize=1 + + msg 'Renaming binary to vex2...' + mv "$pkgdir/usr/bin/vex" "$pkgdir/usr/bin/vex2" +} |