summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a15aa08a04b3d1c1ef1a0b9897fae1ecb9faa4f (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
# Maintainer: Luis Sarmiento <lgsarmientop-ala-unal.edu.co>

pkgname=dawncut
pkgver=1.54a
_pkgver=1_54a
pkgrel=4
pkgdesc="Tool to generate a 3D DAWN scene data clipped with an arbitrary plane."
url="http://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html"
arch=('x86_64' 'i686')
license=('unknown')
depends=('dawn')
source=("http://geant4.kek.jp/~tanaka/src/${pkgname}_${_pkgver}.taz")
sha256sums=('531e1f0e2ed35de3e2b1803108c0efb732d83a0c676f14083bd41a71346b4fa9')

build() {
  cd "${srcdir}/${pkgname}_${_pkgver}"
  make
}

package() {
  cd "${srcdir}/${pkgname}_${_pkgver}"
  [ -d ${pkgdir}/usr/bin/ ] || install -d ${pkgdir}/usr/bin/
  install -m755 ${pkgname}  ${pkgdir}/usr/bin/

  _DOCDIR=usr/share/doc/${pkgname}
  [ -d ${pkgdir}/${_DOCDIR} ] || install -d ${pkgdir}/${_DOCDIR}
  install -m644 ${srcdir}/${pkgname}_${_pkgver}/*.html ${pkgdir}/${_DOCDIR}
}