summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45313add4b6703f958484564b542f6bf3c4b2494 (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
# Maintainer: Graham Edgecombe <graham@grahamedgecombe.com>
pkgname=sleeksnap
pkgver=1.4.9
_gitsha=40bedcdc
pkgrel=1
pkgdesc='The user-friendly screenshot program'
arch=('any')
url='http://sleeksnap.com/'
license=('GPL3')
depends=('java-runtime')
makedepends=('unzip')
source=("http://cdn.probablyaserver.com/sleeksnap/Sleeksnap-${_gitsha}.jar"
        'sleeksnap'
        'sleeksnap.desktop')
noextract=("Sleeksnap-${_gitsha}.jar")
md5sums=('7d45b107a17f1f32365b7adaed8aa51a'
         '142cfa8913ad1ab91f7638e4296367a4'
         '99013580a98f44a5f9f634d916bac7d2')

build() {
  cd "$srcdir"
  unzip -jo "Sleeksnap-${_gitsha}.jar" icon32x32.png
}

package() {
  cd "$srcdir"
  install -Dm755 "$srcdir/sleeksnap" "$pkgdir/usr/bin/sleeksnap"
  install -Dm644 "Sleeksnap-${_gitsha}.jar" "$pkgdir/usr/share/java/sleeksnap/sleeksnap.jar"
  install -Dm644 "$srcdir/sleeksnap.desktop" "$pkgdir/usr/share/applications/sleeksnap.desktop"
  install -Dm644 icon32x32.png "$pkgdir/usr/share/pixmaps/sleeksnap.png"
}