blob: 5838f905102aa8a6980ba8b4df4f922f61651c04 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer: Luis Sarmiento <Luis.Sarmiento-ala-nuclear.lu.se>
pkgname=upak
pkgver=10.6.8
pkgrel=8
pkgdesc="HRIBF Data Acquisition and analysis."
url="ftp://ftp.phy.ornl.gov/pub/upak/README.html"
arch=('x86_64')
license=('unknown')
depends=('libx11' 'tcsh' 'bash')
makedepends=('gcc-fortran>=4.2')
options=(staticlibs emptydirs)
source=("ftp://ftp.phy.ornl.gov/pub/${pkgname}/${pkgname}-src.tar.gz"
"Dscanor.Makefile.patch"
"upak.install")
md5sums=('bcdddfd685f4a19cd93452be18de238b'
'ec5128392e9f7b52a3e5dc5650cd7de5'
'7d8e9e7ec0f6ed54683a65f640899e20')
install="${pkgname}.install"
prepare() {
#
# diff -puN src/upak/Dscanor/Makefile Dscanor.Makefile > Dscanor.Makefile.patch
#
msg 'patch Dscanor Makefile'
cd "${srcdir}/${pkgname}/Dscanor"
patch -Np3 < ${srcdir}/Dscanor.Makefile.patch
}
package() {
## compile
cd "${srcdir}/${pkgname}"
make clean
make -j1 INSTALLDIR="${pkgdir}/usr/bin" all
## documentation (0)
_DOCDIR=${pkgdir}/usr/share/doc/${pkgname}
[ -d ${_DOCDIR} ] || install -d ${_DOCDIR}
# correct the location of the doc dir and change executable permissions
install -m644 ${pkgdir}/usr/bin/doc/* ${_DOCDIR}
rm -rf ${pkgdir}/usr/bin/doc
# correct the location of the file and create DOC dir
install -Dm644 ${pkgdir}/usr/bin/*.{hep,ps,dat,make,f} ${_DOCDIR}
#clean bin directory from what is already placed in the doc dir.
rm -f ${pkgdir}/usr/bin/*.{hep,ps,dat,make,f}
## libraries
_LIBDIR=${pkgdir}/usr/lib
[ -d ${_LIBDIR} ] || install -d ${_LIBDIR}
install -Dm644 ${pkgdir}/usr/bin/*.{a,o} ${pkgdir}/usr/lib/
#clean bin directory from what is already placed in the lib dir.
rm -f ${pkgdir}/usr/bin/*.{a,o}
## others
cd "${srcdir}/${pkgname}"
install -m644 Dreadme/README-Apr07 ${_DOCDIR}
install -m644 Dreadme/readme.{tex,doc} ${_DOCDIR}
install -m644 Dreadme/dvd.{tex,doc} ${_DOCDIR}
}
|