blob: 586673f9d940d278f1675f869aad0a4c0f53876a (
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: zfo <zfoofz1 at gmail dot com>
pkgname=libmir-git
_gitname=mir
pkgver=v0.16.0.alpha4.2.gc361dfb
pkgrel=1
pkgdesc="Generic Numerical Library for the D Programming language"
arch=('i686' 'x86_64')
url="https://github.com/libmir/mir"
license=('BSL')
depends=('libphobos-devel' 'dmd')
makedepends=('git' 'dub')
optdepends=('ldc: faster numeric operations')
source=("git://github.com/libmir/$_gitname.git")
md5sums=('SKIP')
options=("staticlibs")
conflicts=('libmir')
pkgver() {
cd "${srcdir}/${_gitname}"
git describe --tags HEAD | sed 's/-/./g'
}
build() {
cd $_gitname
dub build -c static-lib
dub build -c dynamic-lib
}
package() {
mkdir -p $pkgdir/usr/include/dlang/dmd/mir
cp -r $srcdir/$_gitname/source/mir/* $pkgdir/usr/include/dlang/dmd/mir/
find $pkgdir/usr -type f | xargs chmod 0644
# symlink for ldc
mkdir -p $pkgdir/usr/include/dlang/ldc
ln -s /usr/include/dlang/dmd/mir $pkgdir/usr/include/dlang/ldc/mir
install -Dm644 $srcdir/$_gitname/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
install -Dm644 $srcdir/$_gitname/libmir.so $pkgdir/usr/lib/libmir.so
install -Dm644 $srcdir/$_gitname/libmir.a $pkgdir/usr/lib/libmir.a
}
|