summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7699300e07b656a5577c1902e65b25a1fc4e2086 (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
# Maintainer: Tomoki Imai <tomo832@gmail.com>
pkgname=viqo-git
pkgver=v2.3.2.r1.g532dbda
pkgdesc="Viqo is a cross-platform \"Nico Nama\" comment viewer."
arch=('i686' 'x86_64')
url="https://github.com/diginatu/Viqo"
license=('MIT')
groups=()
depends=('qt5-base')
makedepends=('git' 'gcc')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=

source=("$pkgname"::'git://github.com/diginatu/Viqo.git')
md5sums=('SKIP')
pkgrel=1



pkgver() {
  cd "$srcdir/$pkgname"
  # Use the tag of the last commit
  git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$pkgname"
  qmake
  make
}

package() {
  cd "$srcdir/$pkgname"
  # I don't know why, but it does nothing.
  # make PREFIX=/usr DESTDIR="$pkgdir" install
  install -Dm755 "$srcdir/$pkgname/viqo" "$pkgdir/usr/bin/viqo"
  install -Dm644 "$srcdir/$pkgname/img/icon.svg" "$pkgdir/usr/share/pixmaps/icon.png"
}