summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 529396772d908ed7bc25126a56f608f04964eebb (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Maintainer: Bogdan Sinitsyn <f1u77y@yandex.ru>
pkgname=simple-viewer-gl
pkgver=3.1.3
_pkgfilename="v$pkgver.tar.gz"
pkgrel=1
pkgdesc='Simple and tiny image viewer based on OpenGL'
arch=('i686' 'x86_64')
url='https://bitbucket.org/andreyu/simple-viewer-gl'
license=('GPL2')
depends=(
  glfw
  libjpeg
  libpng
  giflib
  libtiff
  libwebp
  freetype2
  lcms2
  zlib
  libexif
  libxrandr
  libxcursor

# Could be opt out
  imlib2
  openexr
)
makedepends=(
  cmake
)
optdepends=(
  # 'imlib2: Common formats support'
  # 'openexr: OpenEXR support'
)
conflicts=(
  "${pkgname}-git"
)
source=("https://bitbucket.org/andreyu/simple-viewer-gl/get/$_pkgfilename")
md5sums=('SKIP')

prepare() {
  cd "$srcdir"
  rm -rf "$pkgname"
  mv *"$pkgname"* "$pkgname"
}

build() {
  cd "$srcdir/$pkgname"

  make release
}

package() {
  cd "$srcdir/$pkgname"

  make DESTDIR="$pkgdir/" PREFIX="/usr/" install
  install -m 755 -d "$pkgdir/usr/share/applications/"
  install -m 644 sviewgl.desktop "$pkgdir/usr/share/applications/"
  install -m 755 -d "$pkgdir/usr/share/icons/"
  install -m 644 res/Icon-1024.png "$pkgdir/usr/share/icons/"
}

# vim:set ts=2 sw=2 et: