summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4930ad87003654a21846f1cac64d81080594bef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
# Contributor: ValdikSS <iam@valdikss.org.ru>
# Contributor: Rein Fernhout <public@reinfernhout.xyz>

pkgname=imgur-screenshot
pkgver=2.0.0
pkgrel=2
pkgdesc='Take screenshot selection, upload to imgur + more cool things'
arch=('any')
url='https://github.com/jomo/imgur-screenshot'
license=('MIT')
depends=('curl' 'jq' 'libnotify')
optdepends=('scrot: (or other screenshot tool) for making screenshots'
            'xclip: needed for copy_url')
conflicts=('imgur-screenshot-git')
source=("${url}/archive/v${pkgver}.tar.gz"
        'imgur-screenshot.desktop'
        'imgur-screenshot.png'
        "${pkgname}_144.patch::${url}/pull/144.patch")
sha256sums=('1581b3d71e9d6c022362c461aa78ea123b60b519996ed068e25a4ccf5a3409f5'
            'ba1c175b17cece30d6f2bcd4b15d924ae64855bd350a42efa9ea146880135fa2'
            'b7f0eb70c642bb5cea60bf8a3b87125c53e64b0636fcfe9b9f591c6731a2b0c0'
            '2c2578c3ed358ec4dc7199924ab9e4d8f9cdebc7cbd97b52831f519fb781ffd4')

prepare() {
  cd "$pkgname-$pkgver"
  patch -p1 -i "$srcdir/${pkgname}_144.patch"
}

package() {
  cd "${pkgname}-${pkgver}"

  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 "$pkgdir/usr/bin/imgur-screenshot"

  install -D -m644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}