summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 239c04a1e095874e28947705ef1bfab2c3b876c1 (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'
         'da8f7f9fc4e462b0ec0a6fab5257d8e0')

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
}