# Contributor: Ɓukasz Jendrysik # Maintainer: Natanael Copa 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() { for patch in $(<"$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"