summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6fc495bbe3f65ff3764dd82552545107f9ce31cd (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
# Maintainer: Gennadiy Mykhailiuta <gmykhailiuta@gmail.com>

pkgname=vym-git
_pkgname=vym
pkgver=2.8.8.r152.gc9cd339
pkgrel=1
pkgdesc='A tool to generate and manipulate maps which show your thoughts'
arch=('x86_64')
url='https://sourceforge.net/projects/vym/'
depends=('qt5-svg' 'qt5-script' 'desktop-file-utils' 'hicolor-icon-theme' 'bash' 'ruby')
makedepends=('git' 'qt5-tools')
license=('GPL')
source=(
  "${_pkgname}::git+https://github.com/insilmaril/vym.git#branch=develop"
  'vym.desktop'
)
noextract=()
sha256sums=(
  'SKIP'
  'e299c69c213e7aac3f5b5d0ab088132b4ec7cb63a391f272e75ed64f049d541b'
)
provides=("$_pkgname")
conflicts=("$_pkgname")

pkgver() {
  cd "${srcdir}/${_pkgname}"
  # cutting off 'foo-' prefix that presents in the git tag
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${srcdir}/${_pkgname}/lang"

  lrelease *.ts
}

build() {
  cd "${srcdir}/${_pkgname}"

  cmake -DCMAKE_INSTALL_PREFIX=/usr .
  make
}

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

# install documentation
  install -Dm644 "${srcdir}"/$_pkgname/doc/$_pkgname.1.gz \
    "${pkgdir}"/usr/share/man/man1/$pkgname.1.gz
  install -Dm644 "${srcdir}"/$_pkgname/doc/$_pkgname.pdf \
    "${pkgdir}"/usr/share/doc/$_pkgname/$_pkgname.pdf
  rm -rf "${pkgdir}"/usr/share/doc/packages

# .desktop and icon file
  install -Dm644 "${srcdir}"/$_pkgname.desktop \
    "${pkgdir}"/usr/share/applications/$_pkgname.desktop
  install -Dm644 "${srcdir}"/$_pkgname/icons/${_pkgname}.png \
    "${pkgdir}"/usr/share/pixmaps/$_pkgname.png
}