summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59eb3f700ac3d6a39b137bccdcb94a1971315b60 (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
# Maintainer: JOLIMAITRE Matthieu <matthieu@imagevo.fr>
pkgname="lustre-tools-6"
pkgver=1.0.0
pkgrel=1
pkgdesc="The Lustre developpment tools free distribution version 6."
url="https://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/lustre-v4/distrib/"
arch=("x86_64")
license=("Free Distribution of the Lustre/Lesar Software")
makedepends=()
optdepends=()
depends=('findutils')
source=("https://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/lustre-v6/pre-compiled/x86_64-Linux-lv6-bin-dist.tgz")
sha256sums=("12ac7fda82c1ec0a027b334861a34b5cc4bf759f996ea52ff70d6adeb0adb7c1")

build() {
	cd "$srcdir/lv6-bin-dist"
	mv bin bin_
	mkdir bin
	for exec in $(cd bin_ ; ls)
	do
		echo '#!/bin/sh
set -e
export LUSTRE_INSTALL=/usr/share/lustre-tools-6
/usr/share/lustre-tools-6/bin_/'$exec' $@
' > "bin/$exec"
		chmod a+x "bin/$exec"
	done
}

package() {
	mkdir -p "$pkgdir/usr/share" "$pkgdir/etc/profile.d"
	cp -r "$srcdir/lv6-bin-dist" "$pkgdir/usr/share/lustre-tools-6"
	echo "append_path '/usr/share/lustre-tools-6/bin'
export PATH" > "$pkgdir/etc/profile.d/lustre-tools-6.sh"
}