summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f6f58085f357aaf9005886a056459527e1b486e (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
32
33
# Maintainer: roger <roger@rogerpc.com.ar>
# Maintainer: Sven Karsten Greiner <sven@sammyshp.de>

pkgname=escrotum-git
pkgver=0.2.1.r46.27dfa4e
pkgrel=1
pkgdesc="Screen capture using pygtk, inspired by scrot"
arch=('x86_64')
url="https://github.com/Roger/escrotum"
license=('GPL3')
depends=('python' 'python-cairo' 'python-gobject' 'python-xcffib')
makedepends=('git' 'python-setuptools')
optdepends=('python-numpy: fast image generation'
            'ffmpeg: screen recording')
provides=('escrotum')
source=('git+https://github.com/Roger/escrotum.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/${pkgname%-git}"
  python setup.py build
}

package() {
  cd "$srcdir/${pkgname%-git}"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 "man/escrotum.1" "$pkgdir/usr/share/man/man1/escrotum.1"
}