summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD29
-rw-r--r--imgur-screenshot.install14
3 files changed, 17 insertions, 41 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 42edda7f15e..12fc96dedf2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,18 @@
-# Generated by mksrcinfo v8
-# Mon Jan 22 10:33:58 UTC 2018
pkgbase = imgur-screenshot-git
pkgdesc = Take screenshot selection, upload to imgur + more cool things
- pkgver = 1.7.3
+ pkgver = v2.0.0.r1.g0f53c6e
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#tag=v1.7.3
+ depends = jq
+ depends = scrot
+ depends = xclip
+ depends = libnotify
+ provides = imgur-screenshot
+ source = git+https://github.com/jomo/imgur-screenshot.git
source = imgur-screenshot.desktop
source = imgur-screenshot.png
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index dcced6e060a..0da1fdabf82 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,33 @@
# Maintainer: ValdikSS <iam@valdikss.org.ru>
+# Contributor: Rein Fernhout <public@reinfernhout.xyz>
pkgname=imgur-screenshot-git
_pkgname=imgur-screenshot
-pkgver=1.7.3
+pkgver=v2.0.0.r1.g0f53c6e
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#tag=v1.7.3'
+provides=('imgur-screenshot')
+depends=('curl' 'grep' 'jq' 'scrot' 'xclip' 'libnotify')
+
+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
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
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"
+ install -Dm755 imgur-screenshot "$pkgdir/usr/bin/imgur-screenshot"
}
diff --git a/imgur-screenshot.install b/imgur-screenshot.install
deleted file mode 100644
index 9b035901501..00000000000
--- a/imgur-screenshot.install
+++ /dev/null
@@ -1,14 +0,0 @@
-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: