summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorValdikSS2015-06-10 14:04:25 +0300
committerValdikSS2015-06-10 14:04:25 +0300
commitb9e8f18762a65d497bf76c28082db5a00d37460d (patch)
tree82a1b13eae62565bd11cf6eaec1e71a1415309d9
downloadaur-b9e8f18762a65d497bf76c28082db5a00d37460d.tar.gz
Initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD42
-rw-r--r--imgur-screenshot.desktop9
-rw-r--r--imgur-screenshot.install14
-rw-r--r--imgur-screenshot.pngbin0 -> 581 bytes
5 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2d68207c846
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = imgur-screenshot-git
+ pkgdesc = Take screenshot selection, upload to imgur + more cool things
+ pkgver = 1.5.4.r16.g9bbe72d
+ pkgrel = 1
+ url = https://github.com/jomo/imgur-screenshot
+ install = imgur-screenshot.install
+ arch = any
+ license = MIT
+ depends = curl
+ depends = grep
+ optdepends = libnotify: for desktop notifications
+ optdepends = scrot: for making screenshots
+ optdepends = xclip: for copying screenshot URLs to clipboard
+ source = git+https://github.com/jomo/imgur-screenshot.git
+ source = imgur-screenshot.desktop
+ source = imgur-screenshot.png
+ md5sums = SKIP
+ md5sums = 459431a977061e56894315ce151d9bef
+ md5sums = 3780c9f2183f7d4705ab86ab077e3885
+
+pkgname = imgur-screenshot-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ee49bea267d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: ValdikSS <iam@valdikss.org.ru>
+
+pkgname=imgur-screenshot-git
+_pkgname=imgur-screenshot
+pkgver=1.5.4.r16.g9bbe72d
+pkgrel=1
+pkgdesc="Take screenshot selection, upload to imgur + more cool things"
+arch=('any')
+url="https://github.com/jomo/imgur-screenshot"
+license=('MIT')
+depends=('curl' 'grep')
+optdepends=('libnotify: for desktop notifications'
+ 'scrot: for making screenshots'
+ 'xclip: for copying screenshot URLs to clipboard')
+install='imgur-screenshot.install'
+source=('git+https://github.com/jomo/imgur-screenshot.git'
+ 'imgur-screenshot.desktop'
+ 'imgur-screenshot.png')
+md5sums=('SKIP'
+ '459431a977061e56894315ce151d9bef'
+ '3780c9f2183f7d4705ab86ab077e3885')
+
+pkgver() {
+ cd "$_pkgname"
+ #printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+
+ sed -i 's~$HOME/Pictures/imgur.png~/usr/share/pixmaps/imgur-screenshot.png~' imgur-screenshot.sh
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+
+ install -Dm644 ".version.txt" "$pkgdir/usr/share/imgur-screenshot/.version.txt"
+ install -Dm644 "$srcdir/imgur-screenshot.png" "$pkgdir/usr/share/pixmaps/imgur-screenshot.png"
+ install -Dm644 "$srcdir/imgur-screenshot.desktop" "$pkgdir/usr/share/applications/imgur-screenshot.desktop"
+ install -Dm755 imgur-screenshot.sh "$pkgdir/usr/bin/imgur-screenshot"
+}
diff --git a/imgur-screenshot.desktop b/imgur-screenshot.desktop
new file mode 100644
index 00000000000..b81add91858
--- /dev/null
+++ b/imgur-screenshot.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=imgur-screenshot
+Comment=Upload the image to imgur web service
+Exec=imgur-screenshot %F
+Icon=/usr/share/pixmaps/imgur-screenshot.png
+MimeType=image/png;image/jpeg;image/bmp;image/gif;image/tiff;image/xcf;
+Categories=Graphics;Network;
diff --git a/imgur-screenshot.install b/imgur-screenshot.install
new file mode 100644
index 00000000000..9b035901501
--- /dev/null
+++ b/imgur-screenshot.install
@@ -0,0 +1,14 @@
+post_install() {
+ update-desktop-database -q
+ echo "Visit https://github.com/jomo/imgur-screenshot for configuration help"
+}
+
+post_upgrade() {
+ update-desktop-database -q
+}
+
+post_remove() {
+ post_upgrade
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/imgur-screenshot.png b/imgur-screenshot.png
new file mode 100644
index 00000000000..4eec172012a
--- /dev/null
+++ b/imgur-screenshot.png
Binary files differ