summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0fdd6bf6f33d92c08b8cca83a79488e7a526f172 (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
#Contributor: Tom Tryfonidis <tomtryf [at] gmail [dot] com>
#Maintainer: Tom Tryfonidis <tomtryf [at] gmail [dot] com>

_pkgname=socnetv
pkgname=$_pkgname-git
pkgver=2.5.r0.g83dc2237
pkgrel=1
pkgdesc="Social Networks Analysis and Visualisation (Development version)"
arch=('any')
url="http://socnetv.sourceforge.net/"
license=('GPL3')
depends=('qt5-base' 'qt5-charts' 'qt5-svg')
makedepends=('git')
provides=('socnetv-git')
conflicts=('socnetv')
source=("$_pkgname::git://github.com/socnetv/app.git")
md5sums=('SKIP')

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

build() {
  cd "${srcdir}/$_pkgname"
  qmake-qt5
  make
}

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

  install -d "$pkgdir/usr/share/socnetv/"
  install -D socnetv "$pkgdir/usr/bin/socnetv"
  install -D socnetv.desktop "$pkgdir/usr/share/applications/socnetv.desktop"
  install -D socnetv.appdata.xml "$pkgdir/usr/share/metainfo/socnetv.appdata.xml"
  install -D "src/images/socnetv.png" "$pkgdir/usr/share/pixmaps/socnetv.png"
  install -D "man/socnetv.1.gz" "$pkgdir/usr/share/man/man1/socnetv.1.gz"

  cp -r translations/ "$pkgdir/usr/share/socnetv/"
}