summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2bda3c3b863fce228ab0ca567013658816da89e3 (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 of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
pkgname=teem
pkgver=1.11.0
pkgrel=3
pkgdesc='Group of libraries for processing scientific raster data.'
arch=('x86_64')
url='http://teem.sourceforge.net/index.html'
license=('LGPL')
depends=()
optdepends=()
makedepends=('cmake')
source=("https://sourceforge.net/projects/teem/files/teem/${pkgver}/teem-${pkgver}-src.tar.gz/download")
sha512sums=('48b171a12db0f02dcfdaa87aa84464c651d661fa66201dc966b3cd5a8134c5bad1dad8987ffcc5d7c21c5d14c2eb617d48200410a1bda19008ef743c093ed575')

prepare() {
	cd "$srcdir/$pkgname-$pkgver-src"

	mkdir build || :
	cd build

	cmake \
		-DCMAKE_INSTALL_PREFIX:PATH="/usr" \
		-DCMAKE_BUILD_TYPE:STRING=Release \
		-DBUILD_SHARED_LIBS:BOOL=ON \
		..
}

build() {
    cd "$srcdir/$pkgname-$pkgver-src/build"
	make
}

package() {
    cd "$srcdir/$pkgname-$pkgver-src/build"
	make install DESTDIR="$pkgdir"

	install -D -m644 \
		"${srcdir}/$pkgname-$pkgver-src/LICENSE.txt" \
		"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}