[arch-commits] Commit in fbgrab/trunk (PKGBUILD)

Kyle Keen kkeen at archlinux.org
Mon Nov 2 11:18:11 UTC 2020


    Date: Monday, November 2, 2020 @ 11:18:10
  Author: kkeen
Revision: 739445

upgpkg: fbgrab 1.4-1

Modified:
  fbgrab/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++---------------------
 1 file changed, 5 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-02 11:17:13 UTC (rev 739444)
+++ PKGBUILD	2020-11-02 11:18:10 UTC (rev 739445)
@@ -3,34 +3,18 @@
 # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
 
 pkgname=fbgrab
-pkgver=1.3
-pkgrel=3
+pkgver=1.4
+pkgrel=1
 pkgdesc="A framebuffer screenshot grabber"
 arch=('x86_64')
-url="https://fbgrab.monells.se/"
+url="https://github.com/GunnarMonell/fbgrab"
 license=("GPL")
 depends=('libpng')
-makedepends=('libpng')
-source=("https://fbgrab.monells.se/fbgrab-$pkgver.tar.gz")
-sha256sums=('5fab478cbf8731fbacefaa76236a8f8b38ccff920c53b3a8253bc35509fba8ed')
+source=("$pkgname-$pkgver.tgz::https://github.com/GunnarMonell/fbgrab/archive/$pkgver.tar.gz")
+sha256sums=('62d7aa82138ac36db0921832f3b5267b4cffc0dc22c8701857ebcb997960a32e')
 
 prepare() {
   cd "$srcdir/$pkgname-$pkgver"
-  # patch from Curtis McEnroe <programble at gmail.com> which should fix alpha
-  patch -p1 fbgrab.c <<EOF
-diff -wbBur fbgrab-1.3/fbgrab.c fbgrab-1.3.q/fbgrab.c
---- fbgrab-1.3/fbgrab.c	2015-06-16 23:53:20.000000000 +0300
-+++ fbgrab-1.3.q/fbgrab.c	2017-05-03 19:49:22.310138775 +0300
-@@ -279,7 +279,7 @@
- 	/* RED   = 2 */
-         outbuffer[(i<<2)+Red] = inbuffer[i*4+srcRed];
- 	/* ALPHA */
--        outbuffer[(i<<2)+Alpha] = srcAlpha >= 0 ? inbuffer[i*4+srcAlpha] : 0xff;
-+        outbuffer[(i<<2)+Alpha] = srcAlpha >= 0 ? inbuffer[i*4+srcAlpha] : '\0';
-     }
- }
- 
-EOF
 }
 
 build() {


More information about the arch-commits mailing list