[arch-commits] Commit in scrot/trunk (PKGBUILD)
Daniel Wallace
dwallace at archlinux.org
Thu Sep 11 00:20:38 UTC 2014
Date: Thursday, September 11, 2014 @ 02:20:38
Author: dwallace
Revision: 118779
upgpkg: scrot 0.8.13-1
upgpkg: scrot include debian patches
Modified:
scrot/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-09-10 23:09:43 UTC (rev 118778)
+++ PKGBUILD 2014-09-11 00:20:38 UTC (rev 118779)
@@ -3,19 +3,25 @@
# Contributor: Giovanni Scafora <giovanni at archlinux.org>
pkgname=scrot
-pkgver=0.8
-pkgrel=7
+pkgver=0.8.13
+pkgrel=1
pkgdesc="A simple command-line screenshot utility for X"
arch=('i686' 'x86_64')
url="http://scrot.sourcearchive.com/"
license=('MIT')
depends=('giblib')
-source=("http://linuxbrit.co.uk/downloads/$pkgname-$pkgver.tar.gz")
-md5sums=('ccae904d225609571bdd3b03445c1e88')
+source=("http://scrot.sourcearchive.com/downloads/${pkgver%.*}-${pkgver##*.}/${pkgname}_${pkgver%.*}.orig.tar.gz"
+ "http://scrot.sourcearchive.com/downloads/${pkgver%.*}-${pkgver##*.}/${pkgname}_${pkgver%.*}-${pkgver##*.}.debian.tar.gz")
+md5sums=('ccae904d225609571bdd3b03445c1e88'
+ '8b725c26660abc1ffd613903f2d7b0c2')
+prepare(){
+ for patch in $(<$srcdir/debian/patches/series); do
+ patch -Np1 -d $srcdir/$pkgname-${pkgver%.*} -i $srcdir/debian/patches/$patch
+ done
+}
build() {
- cd $srcdir/$pkgname-$pkgver
-
+ cd $srcdir/$pkgname-${pkgver%.*}
./configure --prefix=/usr \
--mandir=/usr/share/man
make
@@ -22,7 +28,7 @@
}
package() {
- cd $srcdir/$pkgname-$pkgver
+ cd $srcdir/$pkgname-${pkgver%.*}
make DESTDIR=$pkgdir docsdir=/usr/share/doc/scrot install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
More information about the arch-commits
mailing list