blob: 91413c2f62b381d80511cc3618b0a5ce6d26751c (
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
|
# Maintainer: pingplug <aur at pingplug dot me>
_pkgname=mayo
_tag="v0.9.0"
_commit="25536dc7399c91504ed2e825041da537a464eb60"
pkgname=mayo-git
pkgver=0.9.0.r2.ge6171c2
pkgrel=1
pkgdesc="3D CAD viewer and converter based on Qt and OpenCascade (git version)"
arch=('any')
url="https://github.com/fougue/mayo"
license=('BSD-2-Clause')
depends=('qt5-base' 'qt5-svg' 'opencascade')
makedepends=('cmake' 'git')
source=("git+https://github.com/fougue/mayo.git#branch=develop"
'mayo.desktop')
sha256sums=('SKIP'
'09872560c396807d00a7a98dddefdeb734ccdc64e0a752e028194a59622c220b')
pkgver() {
cd "${srcdir}/${_pkgname}"
git tag -f ${_tag} ${_commit} > /dev/null
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
cd "${srcdir}"
mkdir -p build && cd build
cmake ../${_pkgname}
make
}
package() {
cd "${srcdir}"
install -Dm755 build/mayo "${pkgdir}"/usr/bin/mayo
install -Dm644 "${_pkgname}"/LICENSE.txt "${pkgdir}"/usr/share/licenses/mayo/LICENSE.txt
install -Dm644 "${_pkgname}"/images/appicon_256.png "${pkgdir}"/usr/share/mayo/appicon.png
install -Dm644 mayo.desktop "${pkgdir}"/usr/share/applications/mayo.desktop
}
|