aboutsummaryrefslogtreecommitdiffstats
path: root/main/scrot/APKBUILD
blob: 9630ba2227147d29f0101246e760dde8da77a1fb (plain) (blame)
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
34
35
36
37
38
39
40
# Contributor: Ɓukasz Jendrysik <scadu@yandex.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=scrot
pkgver=0.8.18
pkgrel=0
pkgdesc="Simple command-line screenshot utility for X"
url="https://tracker.debian.org/pkg/scrot"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
depends=
makedepends="giblib-dev imlib2-dev libx11-dev"
source="http://http.debian.net/debian/pool/main/s/$pkgname/${pkgname}_${pkgver%.*}.orig.tar.gz
	http://http.debian.net/debian/pool/main/s/$pkgname/${pkgname}_${pkgver%.*}-${pkgver##*.}.debian.tar.xz"
builddir="$srcdir/$pkgname-${pkgver%.*}"

prepare() {
	local patch
	for patch in $(cat "$srcdir"/debian/patches/series); do
		patch -p1 -d "$builddir" -i "$srcdir/debian/patches/$patch"
	done
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" docsdir=/usr/share/doc/scrot install
}

sha512sums="cba8f589e45758ddbfe4e276399a1ecb0dbe29569be5d85d97733e7f64de2911bd2d03e62700ad0c718a1fc886c2e3def9dee1de5cac884f9e65e772cebe838c  scrot_0.8.orig.tar.gz
225a857c2586a0eaaa17e8f3dacdb01c395cefac99be80665c3a26be25b6cc9785a26f16de464829eb26e0e51d7d5420fe7ed79c1bbbd6931043d01a72d9d832  scrot_0.8-18.debian.tar.xz"