summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO12
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD47
-rw-r--r--setup.py.patch12
4 files changed, 48 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5153e6be46b..6877a0e85e2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
-pkgbase = gscreenshot
- pkgdesc = A simple screenshot tool supporting multiple backends
+pkgbase = gscreenshot-simd
+ pkgdesc = A simple screenshot tool supporting multiple backends (fork using python-pillow-simd)
pkgver = 2.10.1
pkgrel = 1
url = https://github.com/thenaterhood/gscreenshot
@@ -7,7 +7,7 @@ pkgbase = gscreenshot
license = GPL
makedepends = fakeroot
depends = python
- depends = python-pillow
+ depends = python-pillow-simd
depends = scrot
depends = pygtk
depends = gtk3
@@ -16,8 +16,12 @@ pkgbase = gscreenshot
optdepends = slop: improved region and window selection
optdepends = xclip: command line clipboard support
optdepends = xdg-utils: for opening screenshot files from gscreenshot
+ provides = gscreenshot
+ conflicts = gscreenshot
source = https://github.com/thenaterhood/gscreenshot/archive/v2.10.1.tar.gz
+ source = setup.py.patch
sha256sums = 0cbc20700cc02854624b4745e87fe8f68f48b5b8b629b169df02514e7149d6b3
+ sha256sums = 5f9fb71c32a76f2e93c3403c7f6c081ed8ee0dd3cf1b81eeeebc85ec926a2e32
-pkgname = gscreenshot
+pkgname = gscreenshot-simd
diff --git a/.gitignore b/.gitignore
index d7b46fbb5f6..76814ed66c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
*.gz
*.xz
+tags
+src
+pkg
diff --git a/PKGBUILD b/PKGBUILD
index 19710d57c6f..953f4c417ca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,54 +1,57 @@
-# Maintainer: Nate Levesque <public at thenaterhood dot com>
+# Maintainer: Marcel Robitaille <mail at marcelrobitaille dot me>
+# Maintainer (upstream): Nate Levesque <public at thenaterhood dot com>
# Contributor: TDY <tdy@archlinux.info>
# Contributor: Matej Horváth <matej.horvath@gmail.com>
-pkgname=gscreenshot
+pkgname=gscreenshot-simd
pkgver=2.10.1
pkgrel=1
epoch=
-pkgdesc="A simple screenshot tool supporting multiple backends"
+pkgdesc="A simple screenshot tool supporting multiple backends (fork using python-pillow-simd)"
arch=('any')
url="https://github.com/thenaterhood/gscreenshot"
license=('GPL')
groups=()
depends=("python"
- "python-pillow"
- "scrot"
- "pygtk"
- "gtk3"
- "python-setuptools"
- "python-gobject")
+ "python-pillow-simd"
+ "scrot"
+ "pygtk"
+ "gtk3"
+ "python-setuptools"
+ "python-gobject")
makedepends=("fakeroot")
checkdepends=()
optdepends=('slop: improved region and window selection'
- 'xclip: command line clipboard support'
- 'xdg-utils: for opening screenshot files from gscreenshot')
-provides=()
-conflicts=()
+ 'xclip: command line clipboard support'
+ 'xdg-utils: for opening screenshot files from gscreenshot')
+provides=('gscreenshot')
+conflicts=('gscreenshot')
replaces=()
backup=()
options=()
install=
changelog=
-source=("https://github.com/thenaterhood/gscreenshot/archive/v$pkgver.tar.gz")
-sha256sums=('0cbc20700cc02854624b4745e87fe8f68f48b5b8b629b169df02514e7149d6b3')
+source=("https://github.com/thenaterhood/gscreenshot/archive/v$pkgver.tar.gz" 'setup.py.patch')
+sha256sums=('0cbc20700cc02854624b4745e87fe8f68f48b5b8b629b169df02514e7149d6b3'
+ '5f9fb71c32a76f2e93c3403c7f6c081ed8ee0dd3cf1b81eeeebc85ec926a2e32')
validpgpkeys=()
prepare() {
- cd $srcdir/gscreenshot-$pkgver
+ cd $srcdir/gscreenshot-$pkgver
+ patch --strip=1 --input="${srcdir}/setup.py.patch"
}
build() {
- echo "Nothing to build"
+ echo "Nothing to build"
}
check() {
- echo "Nothing to check"
+ echo "Nothing to check"
}
package() {
- echo $pkgdir
- cd $srcdir/gscreenshot-$pkgver
- python setup.py install --root="$pkgdir/" --optimize=1 --force
- chmod +x "$pkgdir/usr/bin/gscreenshot"
+ echo $pkgdir
+ cd $srcdir/gscreenshot-$pkgver
+ python setup.py install --root="$pkgdir/" --optimize=1 --force
+ chmod +x "$pkgdir/usr/bin/gscreenshot"
}
diff --git a/setup.py.patch b/setup.py.patch
new file mode 100644
index 00000000000..127c0febb8d
--- /dev/null
+++ b/setup.py.patch
@@ -0,0 +1,12 @@
+diff --unified --recursive --text ./package.orig/gscreenshot-2.10.1/setup.py ./package.new/gscreenshot-2.10.1/setup.py
+--- ./setup.py 2019-06-19 19:16:45.618375805 -0300
++++ ./setup.py 2019-06-19 19:14:19.723356083 -0300
+@@ -5,7 +5,7 @@
+ import os
+
+ install_requires = [
+- 'pillow',
++ 'pillow-simd',
+ ]
+
+ test_requires = [