summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c2dfb7045f6a980f44788d1ae0eff0c03084eab (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: Dan Yeomans <dan@dyeo.net>

pkgname=scrotre-git
pkgver=1.1.0.r0.8c6c9e3
pkgrel=1
pkgdesc="Screen capture using pygtk, inspired by scrot, forked from escrotum"
arch=('x86_64')
url="https://github.com/dyeo/scrotre"
license=('GPL3')
depends=('python' 'python-cairo' 'python-gobject' 'python-xcffib')
makedepends=('git' 'python-setuptools')
optdepends=('python-numpy: fast image generation'
            'ffmpeg: screen recording')
provides=('scrotre')
source=('git+https://github.com/dyeo/scrotre.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/scrotre.1" "$pkgdir/usr/share/man/man1/scrotre.1"
}