summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18a8b1ca1c5767fc48462503f0bb9bbced770c17 (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
# Maintainer: Brice Waegeneire <brice.wge@gmail.com>
# Contributor: moeb, https://github.com/moeb

pkgname=freecad-cadquery-git
pkgver=1.0.0.1.r5.g456f520
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="CadQuery module for freecad"
url="https://github.com/jmwright/cadquery-freecad-module"
provides=('cadquery-freecad-module')
depends=('freecad')
makedepends=('git')
license=('LGPL3')
source=('git+https://github.com/jmwright/cadquery-freecad-module.git')
md5sums=('SKIP')
_moddir=usr/lib/freecad/Mod/CadQuery
_pkgname=cadquery-freecad-module

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

package() {
    cd $srcdir/${_pkgname}
    mkdir -p $pkgdir/$_moddir
    cp -r . $pkgdir/$_moddir
}