blob: a745368fc531862aa40deaf5d44f807ea198b8be (
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
42
43
44
|
# Maintainer: Damien Flament <damien.flament at gmx dot com>
_repository='libdxfrw'
pkgname=libdxfrw-git
pkgver=v0.5.10.r73.g3431cc6
pkgrel=1
pkgdesc="C++ library to read/write DXF files in binary and ASCII form and to read DWG files from r14 to v2015."
arch=('x86_64')
url="http://sourceforge.net/projects/libdxfrw"
license=('GPL')
depends=()
makedepends=('git' 'cmake')
provides=('libdxfrw')
conflicts=('libdxfrw')
source=("git+https://github.com/LibreCAD/$_repository.git")
md5sums=('SKIP')
pkgver() {
cd "$_repository" || return
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cmake -DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-S "$_repository" \
-B build \
-DCMAKE_BUILD_TYPE=Release
}
build() {
cd build || return
make
}
package() {
cd build || return
make install DESTDIR="$pkgdir"
}
|