-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
55 lines (49 loc) · 1.54 KB
/
PKGBUILD
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
# Maintainer: Mateus Mercer <[email protected]>
pkgname=algodoo-wine
_pkgname=Algodoo
pkgver=2.1.0
_pkgver=2_1_0
pkgrel=1
pkgdesc="A unique 2D-simulation software from Algoryx Simulation AB (Using Wine)."
arch=("any")
url="http://algodoo.com"
license=('custom:Algodoo')
depends=('wine'
'desktop-file-utils'
'winetricks'
)
makedepends=(
'innoextract'
)
optdepends=(
'lib32-nvidia-utils: 32 bits NVIDIA driver for Algodoo'
)
_alg="${_pkgname}_${_pkgver}-Win32.exe"
source=("http://www.algodoo.com/download/${_alg}"
"LICENSE"
"algodoo.sh"
"algodoo.desktop"
"algodoo.png"
)
sha256sums=("3e65d18c63b20c17aaedd5c96f9751d914dc5e024ef001fc5cf569b94255caa4"
"3a46622a459bd0148d52988a7d5bcd7432facfe6af30b33a2f6db5f4f04f5bb2"
"12fe213da742a3bea365c2a345a610262bf23524e498e3485900a55016f5f984"
"19f2775207fe72643ff4a787afb478c8d511b7eb25f632f54dc229a064b1c41c"
"0f7e995cd90df87236404db4c28789e23eef7341cc47f321f1ea6ce30fa913f1"
)
package() {
# Create common folders
mkdir -p "$pkgdir/usr/share/algodoo"
# Extract installer using innoextract
innoextract "${_alg}" --output-dir "$pkgdir/usr/share/algodoo"
# Correct filesystem perms
chmod -R u=rwX,go=rX "$pkgdir"/usr/share
# Install the license
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Install the script
install -Dm755 algodoo.sh "$pkgdir/usr/bin/algodoo"
# Install the icon
install -Dm644 algodoo.png "$pkgdir/usr/share/pixmaps/algodoo.png"
# Install the .desktop
install -Dm644 algodoo.desktop "$pkgdir/usr/share/applications/algodoo.desktop"
}