summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5c9718b7a6d1b93f3310bd4d8a600f32d1e2749 (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
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: easymodo <easymodofrf@gmail.com>
pkgname=qimgv-git
_pkgname=qimgv
pkgver=0.6.r0.g96626a1
pkgrel=1
#epoch=
pkgdesc="Simple image viewer written in qt. Supports webm playback."
arch=('i686' 'x86_64')
url="http://github.com/easymodo/qimgv"
license=('GPL3')
#groups=()
depends=('qt5-base' 'qt5-imageformats' 'qt5-svg' 'mpv')
makedepends=('git' 'cmake' 'qt5-tools' 'mpv')
#checkdepends=()
optdepends=()
provides=("qimgv")
conflicts=("qimgv")
#replaces=()
#backup=()
#options=()
#install=$pkgname.install
#changelog=
source=('git+https://github.com/easymodo/qimgv.git')
#noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//g'
}

prepare() {
	cd "$_pkgname"
	mkdir build
	cd build
	cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
}

package() {
	cd "$_pkgname/build"
	make
	make DESTDIR="$pkgdir" install
}