summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD74
-rw-r--r--black-white_2-Style-applets-screenshooter.pngbin9998 -> 0 bytes
-rw-r--r--gscreenshot.desktop9
4 files changed, 64 insertions, 48 deletions
diff --git a/.SRCINFO b/.SRCINFO
index efe9a9565db..185b0a65902 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,21 @@
pkgbase = gscreenshot
pkgdesc = A GUI front-end for scrot
- pkgver = 1.3
- pkgrel = 5
- url = http://gscreenshot.googlecode.com/
- arch = i686
- arch = x86_64
+ pkgver = 2.0.1
+ pkgrel = 1
+ url = https://github.com/thenaterhood/gscreenshot
+ arch = any
license = GPL
- depends = libglade
+ makedepends = unzip
+ makedepends = fakeroot
+ depends = python3
+ depends = python-pillow
depends = scrot
- depends = pygtk
- depends = python-imaging
- noextract = gscreenshot-1.3.tar.gz
- source = http://gscreenshot.googlecode.com/svn/trunk/gscreenshot-1.3.tar.gz
- source = black-white_2-Style-applets-screenshooter.png
- source = gscreenshot.desktop
- md5sums = 9b71ff62bb1a4d30557f6af6726da10f
- md5sums = 289f9c98f97be35bc558ee5d314d3a3d
- md5sums = edca8ec37120e6bfbb438e136f03551d
+ depends = gtk3
+ depends = python-setuptools
+ depends = python-gobject
+ noextract = v2.0.1.zip
+ source = https://github.com/thenaterhood/gscreenshot/archive/v2.0.1.zip
+ md5sums = fb2e4a7683b41318ff649d98e0506c6f
pkgname = gscreenshot
diff --git a/PKGBUILD b/PKGBUILD
index 58fa9c85a01..6adefe84b37 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,58 @@
-# Maintainer: TDY <tdy@archlinux.info>
+# Maintainer: Nate Levesque <public at thenaterhood dot com>
+# Contributor: TDY <tdy@archlinux.info>
# Contributor: Matej Horváth <matej.horvath@gmail.com>
pkgname=gscreenshot
-pkgver=1.3
-pkgrel=5
+pkgver=2.0.1
+pkgrel=1
+epoch=
pkgdesc="A GUI front-end for scrot"
-arch=('i686' 'x86_64')
-url="http://gscreenshot.googlecode.com/"
+arch=('any')
+url="https://github.com/thenaterhood/gscreenshot"
license=('GPL')
-depends=('libglade' 'scrot' 'pygtk' 'python-imaging')
-source=(http://$pkgname.googlecode.com/svn/trunk/$pkgname-$pkgver.tar.gz
- black-white_2-Style-applets-screenshooter.png $pkgname.desktop)
-noextract=($pkgname-$pkgver.tar.gz)
-md5sums=('9b71ff62bb1a4d30557f6af6726da10f'
- '289f9c98f97be35bc558ee5d314d3a3d'
- 'edca8ec37120e6bfbb438e136f03551d')
+groups=()
+depends=("python3"
+ "python-pillow"
+ "scrot"
+ "gtk3"
+ "python-setuptools"
+ "python-gobject")
+makedepends=("unzip"
+ "fakeroot")
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("https://github.com/thenaterhood/gscreenshot/archive/v$pkgver.zip")
+noextract=("v$pkgver.zip")
+md5sums=('fb2e4a7683b41318ff649d98e0506c6f')
+validpgpkeys=()
-package() {
- cd "$srcdir"
- install -dm755 "$pkgdir/usr/share/$pkgname"
- tar xzf $pkgname-$pkgver.tar.gz -C "$pkgdir/usr/share/$pkgname" \
- --strip=1 --transform="s,$pkgname$,$pkgdir/usr/bin/$pkgname,"
- install -Dm644 $pkgname.desktop \
- "$pkgdir/usr/share/applications/$pkgname.desktop"
- install -Dm644 black-white_2-Style-applets-screenshooter.png \
- "$pkgdir/usr/share/pixmaps/$pkgname.png"
- sed -i 's,/usr/bin/env python,&2,; s,import Image,from PIL &,' \
- "$pkgdir/usr/share/$pkgname/$pkgname.py"
+prepare() {
+ unzip $srcdir/v$pkgver.zip
+ cd $srcdir/gscreenshot-$pkgver
+}
+
+build() {
+ echo "Nothing to build"
}
-# vim:set ts=2 sw=2 et:
+check() {
+ echo "Nothing to check"
+}
+
+package() {
+ echo $pkgdir
+ cd $srcdir/gscreenshot-$pkgver
+ python setup.py install --root="$pkgdir/" --optimize=1
+ chmod +x "$pkgdir/usr/bin/gscreenshot"
+ install -Dm644 dist/$pkgname.desktop \
+ "$pkgdir/usr/share/applications/$pkgname.desktop"
+ install -Dm644 dist/black-white_2-Style-applets-screenshooter.png \
+ "$pkgdir/usr/share/pixmaps/$pkgname.png"
+}
diff --git a/black-white_2-Style-applets-screenshooter.png b/black-white_2-Style-applets-screenshooter.png
deleted file mode 100644
index dd4f671b148..00000000000
--- a/black-white_2-Style-applets-screenshooter.png
+++ /dev/null
Binary files differ
diff --git a/gscreenshot.desktop b/gscreenshot.desktop
deleted file mode 100644
index b02e167007a..00000000000
--- a/gscreenshot.desktop
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Type=Application
-Name=gscreenshot
-Comment=A pygtk wrapper for the 'scrot' utility
-TryExec=/usr/bin/gscreenshot
-Exec=gscreenshot
-Icon=gscreenshot
-Categories=Graphics;