summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b2a513a2b5b90f0aa5365a4db1a9f54367cb52c (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
# Maintainer: roger <roger@rogerpc.com.ar>

pkgname=escrotum-git
pkgver=0.2.1.r44.292766e
pkgrel=1
pkgdesc="Screen capture using pygtk, inspired by scrot"
arch=('x86_64')
url="https://github.com/Roger/escrotum"
license=('GPL3')
depends=('python' '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"
}