summaryrefslogtreecommitdiffstats
path: root/main/scrot/APKBUILD
blob: 781d56915bedd3b810bed0e1da7bbcecfb0feaf4 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=scrot
pkgver=0.8
pkgrel=5
pkgdesc="A simple command-line screenshot utility for X"
url="http://linuxbrit.co.uk/scrot/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
depends=
makedepends="giblib-dev imlib2-dev libx11-dev"
source="http://linuxbrit.co.uk/downloads/$pkgname-$pkgver.tar.gz"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" docsdir=/usr/share/doc/scrot install || return 1
	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
md5sums="ccae904d225609571bdd3b03445c1e88  scrot-0.8.tar.gz"