diff options
author | Robin Nehls | 2015-07-17 13:35:58 +0200 |
---|---|---|
committer | Robin Nehls | 2015-07-17 13:39:33 +0200 |
commit | 723a517251102a823d232194979429c820dd4a7d (patch) | |
tree | 6df9e16ab39d8d12c0b3f9b4eb9b568d07834b49 | |
download | aur-723a517251102a823d232194979429c820dd4a7d.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9ba67141fd80 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = buttersink-git + pkgdesc = Buttersink is like rsync for btrfs snapshots + pkgver = 0.6.r2.g2ad4585 + pkgrel = 1 + url = https://github.com/AmesCornish/buttersink.git + arch = any + license = GPL3 + depends = btrfs-progs + depends = python2-boto + depends = python2-crcmod + depends = python2-flake8 + depends = python2-psutil + provides = buttersink + conflicts = buttersink + source = git+https://github.com/AmesCornish/buttersink.git + md5sums = SKIP + +pkgname = buttersink-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cb29b12d0aa2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Robin Nehls <aur@manol.is> + +pkgname=buttersink-git +_gitname=buttersink +pkgver=0.6.r2.g2ad4585 +pkgrel=1 +pkgdesc="Buttersink is like rsync for btrfs snapshots" +arch=('any') +url="https://github.com/AmesCornish/buttersink.git" +license=('GPL3') +depends=('btrfs-progs' 'python2-boto' 'python2-crcmod' 'python2-flake8' 'python2-psutil') +conflicts=('buttersink') +provides=('buttersink') +source=('git+https://github.com/AmesCornish/buttersink.git') +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_gitname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/${_gitname}" + echo "version = \"$(git describe --tags)\"" > buttersink/version.py + python2 setup.py build +} + +package() { + cd "${srcdir}/${_gitname}" + python2 setup.py install --root "${pkgdir}" +} |