summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04a10cb50aa9c12da7e8195046e22441560676b5 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=xmedcon-extra
pkgver=1.2.1a
pkgrel=1
epoch=1
pkgdesc="Some tools and ressources for Xmedcon"
url="http://xmedcon.sourceforge.net/"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL')
depends=('xmedcon')
source=(https://sourceforge.net/projects/xmedcon/files/XMedCon-Extra/$pkgver/xmedcon-extra-$pkgver.zip)
sha256sums=('629b974a83b540ac0f1b6c8059690d5bee108f00310d86a34e01ede39efce977')

build() {
  cd $pkgname/source
  for _exec in get1gif getecatdb makegray testit ctbody2stack ctskull2stack imtkconv
  do
    make ${_exec}
  done
}

package() {
  cd $pkgname/source
  for _exec in get1gif getecatdb makegray testit ctbody2stack ctskull2stack imtkconv
  do
    install -Dm755 ${_exec%.c} "$pkgdir"/usr/bin/${_exec%.c}
  done
  cd ..
  install -d "$pkgdir"/usr/share/xmedcon/
  cp -r luts "$pkgdir"/usr/share/xmedcon/
}