Skip to content

Instantly share code, notes, and snippets.

@emersion
Created June 15, 2014 14:26
Show Gist options
  • Save emersion/e5ae8f731bd9ae9a9d76 to your computer and use it in GitHub Desktop.
Save emersion/e5ae8f731bd9ae9a9d76 to your computer and use it in GitHub Desktop.
PKGBUILD for shutter-0.91
# Maintainer: Shanto <[email protected]>
# Contributor: Athurg <[email protected]>
# Contributor: TDY <[email protected]>
pkgname=shutter
pkgver=0.91
pkgrel=1
pkgdesc="A featureful screenshot tool (formerly gscrot)"
arch=('i686' 'x86_64')
url="http://shutter-project.org/"
license=('GPL3')
depends=(
xdg-utils libxml-perl imagemagick bc procps librsvg gnome-perl
perl-{gnome2-wnck,gtk2-{imageview,unique},x11-protocol,image-exiftool}
perl-{proc-{simple,processtable},net-{dbus,dropbox-api},goo-canvas}
perl-{sort-naturally,json,json-xs,xml-simple,www-mechanize,locale-gettext}
perl-{file-{which,basedir,copy-recursive},pathtools,path-class}
#perl-pathtools
)
optdepends=(
'nautilus-sendto: "Send To" functionality in right-click and main menu'
'perl-net-dbus-glib: Upload support for Ubuntu One'
'gnome-web-photo: Support for capturing websites'
'perl-gtk2-appindicator: AppIndicator support'
#'perl-gtk2-trayicon: Only if you using a gtk2 lower than 2.10.x'
)
source=("http://shutter-project.org/wp-content/uploads/releases/tars/$pkgname-$pkgver.tar.gz")
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 bin/$pkgname "$pkgdir/usr/bin/$pkgname"
cp -r share "$pkgdir/usr/"
find "$pkgdir/usr/share" -type d -exec chmod 755 '{}' \;
find "$pkgdir/usr/share" -type f -exec chmod 644 '{}' \;
find "$pkgdir" -path '*plugins*' -type f ! -name '*.*' -exec chmod 755 '{}' \;
find "$pkgdir" -path '*/upload_plugins/*' -type f -name '*.pm' -exec chmod 755 '{}' \;
}
md5sums=('9775b904dd4e75b87f5e51bb861c74ad')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment