diff options
author | Giuseppe | 2017-06-11 02:40:42 +0200 |
---|---|---|
committer | Giuseppe | 2017-06-11 02:40:42 +0200 |
commit | 871021d08b4b303e8cb6e40b7f7615cf43b7582b (patch) | |
tree | a89f23cd118bfec1afb4016fea10dd4995c55c4d | |
download | aur-871021d08b4b303e8cb6e40b7f7615cf43b7582b.tar.gz |
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5ec6d38752d3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = pyswitch-git + pkgdesc = Easily switch between python2 and python3 + pkgver = r2.240a8f0 + pkgrel = 1 + url = https://github.com/giuscri/pyswitch + arch = x86_64 + license = WTFPL + makedepends = git + depends = python-colorama + depends = python2-colorama + source = pyswitch-git::git+https://github.com/giuscri/pyswitch.git + md5sums = SKIP + +pkgname = pyswitch-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1e8dc9b4c417 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Giuseppe <giuscri@gmail.com> +pkgname='pyswitch-git' +pkgver=r2.240a8f0 +pkgrel=1 +pkgdesc="Easily switch between python2 and python3" +arch=('x86_64') +url="https://github.com/giuscri/pyswitch" +license=('WTFPL') +depends=('python-colorama' 'python2-colorama') +makedepends=('git') +source=("$pkgname::git+https://github.com/giuscri/pyswitch.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$pkgname" + install -Dm0755 "$srcdir/$pkgname/pyswitch" "$pkgdir/usr/bin/pyswitch" + install -Dm0644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/pyswitch/LICENSE" +} |