summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 367d860a8f7632c09ebe36623fecc7dce733ffcd (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
# Maintainer: eriXD <the.eriXD {a.t} gmail {d.o.t} com>

pkgname=coppeliasim
pkgver=4_1_0
pkgrel=1
pkgdesc="CoppeliaSim, formerly known as V-REP, is the Swiss army knife among robot simulators."
arch=("x86_64")
url="http://www.coppeliarobotics.com/index.html"
license=("GPL" "LGPL")
#depends=('')
optdepends=('icu60: BlueZero api dependency')
#replaces=('vrep')
options=(!strip)
provides=('vrep')
install=""
source=("http://www.coppeliarobotics.com/files/CoppeliaSim_Edu_V${pkgver}_Ubuntu20_04.tar.xz"
        "coppeliasim.sh")
md5sums=('e09e9cf3d2b14353c9d8c29d58d05910'
         'c6ac387b3f540d5d6a7bcb0b97c67828')
prepare()
{
    echo "nothing to prepare"
}

build() {
    echo "nothing to build"
}

package() {
    # Create wrapper for java8 + buider and documentation symlink
    install -Dm755 "coppeliasim.sh" "${pkgdir}/usr/bin/coppeliasim"

    if [ "$CARCH" = x86_64 ]
    then
        cd "${srcdir}/CoppeliaSim_Edu_V${pkgver}_Ubuntu20_04"
    else
        cd "${srcdir}/CoppeliaSim_Edu_V${pkgver}_Ubuntu20_04"
    fi

    # Copy the whole thing
    install -dm766 "${pkgdir}/usr/share/coppeliasim"
    yes | cp -prf . "${pkgdir}/usr/share/coppeliasim"
    chmod -R 777 "${pkgdir}/usr/share/coppeliasim"
}