summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66475f9d431a90dab62706466caf1b4cbae2c407 (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
# Maintainer of this PKBGUILD file: Martino Pilia <martino.pilia@gmail.com>
_pkgname=elastix
pkgname=${_pkgname}-bin
pkgver=5.1.0
pkgrel=1
pkgdesc='Toolbox for rigid and nonrigid registration of images'
arch=('x86_64')
url='https://github.com/SuperElastix/elastix'
license=('apache')
provides=('elastix')
depends=()
makedepends=()
optdepends=()
conflicts=('elastix-git' 'elastix')
source=("https://github.com/SuperElastix/elastix/releases/download/${pkgver}/elastix-${pkgver}-linux.zip")
sha256sums=('b333f2a911c23ba978c4a249722c8dfb29f81d190ab69553ce1622fae39c3cf9')

package() {
	cd "${srcdir}"

	mkdir -p "${pkgdir}/usr/share/licenses/${_pkgname}"

	cp -r bin "${pkgdir}/usr/bin"
	cp -r lib "${pkgdir}/usr/lib"

	install -D -m644 \
		"LICENSE" \
		"$pkgdir/usr/share/licenses/$_pkgname/LICENSE"

	install -D -m644 \
		"NOTICE" \
		"$pkgdir/usr/share/licenses/$_pkgname/NOTICE"
}