blob: f46f03b23e951b918426f08f5bbe0d477c15bd62 (
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
|
# Maintainer: Your Name <youremail@domain.com>
pkgname=env-modules-tcl
pkgver=1.832
pkgrel=4
epoch=
pkgdesc="Provides for an easy dynamic modification of a user's environment via modulefile (tcl-only-version)."
arch=('i686' 'x86_64')
url="https://sourceforge.net/projects/modules/"
license=('GPLv2')
groups=()
depends=('tcl>=7.4')
makedepends=()
checkdepends=('dejagnu')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://sourceforge.net/projects/modules/files/Modules-Tcl/modules-tcl-$pkgver.tar.gz" "zshcomp.patch")
noextract=()
validpgpkeys=()
install="env-modules-tcl.install"
md5sums=('3a40bf6177cc438481672ce028544828'
'4b7a5d66a1668fac5b3837723edceea4')
install_prefix=/usr
build() {
cd modules-tcl-$pkgver
patch -p1 < ../zshcomp.patch
./configure \
--prefix=$install_prefix \
--docdir=$install_prefix/doc/modules-tcl \
--initdir=$install_prefix/env-modules/init \
--modulefilesdir=$install_prefix/env-modules/modulefiles \
--disable-set-binpath --disable-set-manpath
make
}
package() {
cd "modules-tcl-$pkgver"
make DESTDIR="$pkgdir/" install
_profiled="$pkgdir/etc/profile.d/"
mkdir -p "$_profiled"
ln -s $install_prefix/env-modules/init/profile.csh $_profiled/env-modules-tcl.csh
ln -s $install_prefix/env-modules/init/profile.sh $_profiled/env-modules-tcl.sh
}
|