summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNate Levesque2015-09-06 20:49:57 -0400
committerNate Levesque2015-09-06 20:49:57 -0400
commitf3b8b13f29994fa8672563bc3475d4e3d5cc527a (patch)
tree823075c148b20ca8ebc2ba30e4488490c20a85ef /PKGBUILD
parent61e16e3586c5ece8175ffb95b1a151f929ff0ba8 (diff)
downloadaur-f3b8b13f29994fa8672563bc3475d4e3d5cc527a.tar.gz
Repackage with updated code
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD74
1 files changed, 50 insertions, 24 deletions
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"
+}