summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a14b44a2ab5b6b3e424ae52dd5b5557b2146673e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Robin Nehls <aur@manol.is>

pkgname=buttersink-git
_gitname=buttersink
pkgver=0.6.7.r0.g276683d
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}"
}