summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b2e04a198a14e9756fc58473289dfbb7740a12cb (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Adriƃ  Arrufat <swiftscythe@gmail.com>
# Contributor: Marcel Pfeiffer <pfeiffer.marcel@gmx.de>

pkgname=konstruktor-git
pkgver=0.9.0.beta1.r95.gcb9d35f
pkgrel=2
pkgdesc="A LDraw-based virtual LEGO(r) CAD for KDE 5."
arch=('i686' 'x86_64')
url="http://opendesktop.org/content/show.php?content=138138"
depends=('kdebase-runtime' 'qt5-base' 'glu' 'povray' 'ldraw-parts-library')
makedepends=('cmake' 'automoc4' 'git' 'qt5-tools')
license=('GPL')
provides=('konstruktor')
conflicts=('konstruktor')
source=("$pkgname::git+https://github.com/segfault87/Konstruktor.git")
md5sums=('SKIP')

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

build() {
  cd $pkgname
  cmake -DCMAKE_INSTALL_PREFIX='/usr'
  make
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
}