summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11f25cfef0c454fb736c081aa40dd66a49dbda42 (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
# Maintainer: Daniel Boerlage <daniel.brlg@gmail.com>
pkgname=libnetica
pkgver=5.04
pkgrel=1
pkgdesc="Probabilistic graphical model software to work with Bayesian networks"
arch=('i686' 'x86_64')
url='https://norsys.com/'
license=('custom:netica license')
depends=('glibc')
options=('!strip')
install=${pkgname}.install
source=(https://www.norsys.com/downloads/NeticaAPI_Linux_504.zip)
sha256sums=('56fc10c6eafbd6d2d82b41c6f1640704b0152b06014834eb815203d0a705f98e')

package() {
	cd "Netica_API_504"

	# install netica-c api
	install -d "$pkgdir"/opt/norsys/netica-c/
	cp -a * "$pkgdir"/opt/norsys/netica-c/

	# linking libnetica
	install -d "$pkgdir"/usr/lib/
	if [ "$CARCH" == "i686" ]; then
		ln -s /opt/norsys/netica-c/lib/libnetica.a "$pkgdir"/usr/lib/
	else
		ln -s /opt/norsys/netica-c/lib/64bit/libnetica.a "$pkgdir"/usr/lib/
	fi

	# linking header files
	install -d "$pkgdir"/usr/include/
	ln -s /opt/norsys/netica-c/src/{Netica.h,NeticaEx.h,NeticaCPP.h} "$pkgdir"/usr/include/

	# linking licence
	install -d "$pkgdir"/usr/share/licenses/libnetica
	ln -s /opt/norsys/netica-c/doc/LicAgree.txt "$pkgdir"/usr/share/licenses/libnetica/LICENSE

	# linking doc
	install -d "$pkgdir"/usr/share/doc/
	ln -s /opt/norsys/netica-c/doc/ "$pkgdir"/usr/share/doc/netica-c
}