blob: ce55f27d660f54450c0d20a2e710ac838d355f02 (
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
|
# Maintainer: Mathias Anselmann <mathias.anselmann@posteo.de.com>
# Contributor: Christian Krause ("wookietreiber") <christian.krause@mailbox.org>
pkgname=lmod
pkgver=8.1.8
pkgrel=1
pkgdesc="Environment modules system based on Lua that handles MODULEPATH hierarchical problem. Supports also legacy TCL modules"
arch=('x86_64')
url="https://github.com/TACC/Lmod"
license=('custom')
depends=('bash' 'lua-filesystem' 'lua-posix' 'procps-ng' 'tcl')
optdepends=('tcsh: supported shell'
'zsh: supported shell')
conflicts=('lmod-git' 'env-modules-tcl')
provides=('env-modules-tcl')
source=("$pkgname-$pkgver.tar.gz::https://github.com/TACC/Lmod/archive/$pkgver.tar.gz")
md5sums=('35625b1c17d9134b9973589fd84e93ef')
build() {
cd "$srcdir"/Lmod-$pkgver || exit 1
./configure \
--prefix=/usr/share
make
}
package() {
install=lmod.install
cd "$srcdir"/Lmod-$pkgver || exit 1
make DESTDIR="$pkgdir" install
install -Dm644 License "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
install -Dm644 "$pkgdir"/usr/share/lmod/$pkgver/share/man/cat1/module.1 "$pkgdir"/usr/share/man/man1/module.1
rm -r "$pkgdir"/usr/share/lmod/$pkgver/share
install -d "$pkgdir"/etc/profile.d
cd "$pkgdir"/etc/profile.d || exit 1
ln -sf /usr/share/lmod/lmod/init/profile modules.sh
ln -sf /usr/share/lmod/lmod/init/cshrc modules.csh
}
|