-
Notifications
You must be signed in to change notification settings - Fork 36
/
PKGBUILD.in
57 lines (57 loc) · 1.4 KB
/
PKGBUILD.in
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
# Maintainer: Manhong Dai <[email protected]>
pkgname=sge
pkgver=SKIP
pkgver() {
cd ..
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git describe --always --dirty=.dirty | sed 's/-/./g')"
}
pkgrel=1
pkgdesc="Son of Grid Engine/Sun Grid Engine"
arch=('x86_64')
url="https://github.com/daimh/sge"
license=('GPL')
makedepends=(git)
depends=(
'autoconf'
'automake'
'awk'
'fakeroot'
'file'
'gcc'
'grep'
'hwloc'
'inetutils'
'libtirpc'
'libxt'
'make'
'openmotif'
'tcsh'
)
prepare() {
cp -pr ../source .
}
build() {
cd source
install -d MANSBUILD_sge/SEDMAN/man/man1
install -d MANSBUILD_sge/SEDMAN/man/man3
install -d MANSBUILD_sge/SEDMAN/man/man5
install -d MANSBUILD_sge/SEDMAN/man/man8
sh scripts/bootstrap.sh -no-java -no-jni
./aimk -DGIT_REPO_VERSION=\\\"$pkgver\\\" -no-java -no-jni -with-arch-linux -systemd -parallel 8
install -d clients/gui-installer/dist
touch clients/gui-installer/dist/installer.jar
rm -f LINUXAMD64/config.status
rm -f 3rdparty/qtcsh/LINUXAMD64/config.status
rm -f 3rdparty/qtcsh/LINUXAMD64/atconfig
rm -f 3rdparty/qmake/LINUXAMD64/config/Makefile
rm -f 3rdparty/qmake/LINUXAMD64/w32/Makefile
rm -f 3rdparty/qmake/LINUXAMD64/Makefile
rm -f 3rdparty/qmake/LINUXAMD64/config.log
rm -f 3rdparty/qmake/LINUXAMD64/config.status
rm -f 3rdparty/qmake/LINUXAMD64/glob/Makefile
}
package() {
install -d $pkgdir/opt/sge
cp -pr ./ $pkgdir/opt/sge/build
}
install=PKGBUILD.install