summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e2434e77649ea8d3df6aa0172cf0786fa84b04d (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
# Maintainer: Matthias Reitinger <reima at edenprime dot de>

pkgname=leocad-git
pkgver=23.03.r120.a42d8639
pkgrel=1
pkgdesc="A CAD program for creating virtual LEGO models."
arch=('i686' 'x86_64')
url="https://www.leocad.org/"
license=('GPL2')
depends=('qt5-base')
optdepends=('ldraw-parts-library: LEGO parts library')
makedepends=('git' 'qt5-tools')
provides=('leocad')
conflicts=('leocad')
source=("$pkgname::git+https://github.com/leozide/leocad.git")
md5sums=('SKIP')

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

build() {
	cd "$pkgname"
	qmake-qt5 INSTALL_PREFIX=/usr LDRAW_LIBRARY_PATH=/usr/share/ldraw DISABLE_UPDATE_CHECK=1
	make
}

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