summaryrefslogtreecommitdiff
path: root/extra/scrot/PKGBUILD
blob: 84bca3aa8ab6fb63020cbb4e032836ac7c126099 (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
# $Id: PKGBUILD 143963 2011-11-30 22:40:01Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgname=scrot
pkgver=0.8
pkgrel=5
pkgdesc="A simple command-line screenshot utility for X"
arch=('i686' 'x86_64')
url="http://scrot.sourcearchive.com/"
license=('MIT')
depends=('giblib')
source=("ftp://ftp.archlinux.org/other/scrot/${pkgname}-${pkgver}.tar.bz2")
md5sums=('6a02df0e3bb26ec578dfeb8f56a7b30d')

build() {
  cd $srcdir/$pkgname-$pkgver

  ./configure --prefix=/usr \
              --mandir=/usr/share/man
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver

  make DESTDIR=$pkgdir docsdir=/usr/share/doc/scrot install
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}