archrelease: copy trunk to community-any
[ArchLinux/community.git] / rocksndiamonds-contrib / trunk / PKGBUILD
blob8f6dc6d2e76539cc00bdec6c49e7e10ec242e565
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # contributor: Jacek Poplawski <jacekpoplawski@gmail.com>
4 pkgname=rocksndiamonds-contrib
5 pkgver=5
6 pkgrel=3
7 arch=(any)
8 pkgdesc='more rockndiamonds levels'
9 url="https://www.artsoft.org/rocksndiamonds/"
10 license=('GPL')
11 depends=()
12 makedepends=('unzip' 'p7zip')
13 options=('!strip')
14 source=(https://www.artsoft.org/RELEASES/rocksndiamonds/levels/BD2K3-1.0.0.zip
15         https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Boulder_Dash_Dream-1.0.0.zip
16         https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Contributions-1.2.0.zip
17         https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Emerald_Mine_Club-2.1.1.7z
18         https://www.artsoft.org/RELEASES/rocksndiamonds/levels/RS_MIX_01-needs_rnd_jue.zip
19         https://www.artsoft.org/RELEASES/rocksndiamonds/levels/RS_MIX_01-standalone.zip
20         https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Snake_Bite-1.0.0.zip
21         https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Sokoban-1.0.0.zip
22         https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Supaplex-2.0.0.7z
23         https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Zelda-1.0.0.zip
24         https://www.artsoft.org/RELEASES/rocksndiamonds/levels/ZeldaII-1.0.0.zip
25         https://www.artsoft.org/RELEASES/rocksndiamonds/levels/rnd-contrib-1.0.0.tar.gz
26         https://artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-sp-1.0.tar.gz
27         https://artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-dx-1.0.tar.gz
28         https://artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-emc-1.0.tar.gz
29         http://www.jb-line.de/rnd/rnd_jue-3.3.0.0.tar.gz)
30 sha256sums=('5fc5130c859e69d6907bff87e01ff2296d59f7376202a8aacc03e55f359fb351'
31             '6f9dc48023830fbdc318d8f18013b5a7e84ab3c815ba566a4a2c46faeb65c969'
32             'd533dc69cd136d2bb7d76d674ab087285799191e0a516320aba8ac2368ce6dd2'
33             'a9d69fe3bfb46ff5525e713dadadfb04022b18ab76d0a0f6628e469468ca9841'
34             '6beeaa42bf165acadf064852b8e15044182f4a2f665d6ed29cb473d0b75449aa'
35             '6427181a7da117fd504338155d68b23084b8e3e4d03db10fe03795b7f54e6506'
36             '6f6b573d89588f56cb3b326f3a42fb57277307bd709713dbef329885ac4d006d'
37             '63f9d36789edca22c0f9454202f9fd21fcee89111642459b5882314f13ebdc0e'
38             '81a11007cfdd21dbef2e4081674dfbad7b4a4f26e4b24b39165fcea6a90b1213'
39             '6c50778224d76a0c708eddcb2a505c5a38cc57092f05bee9c4d58e2bb519a5e1'
40             'bec04b0448f18f1b796972cccef736ad250b782d08fad35d1387e5b9a05d3e32'
41             'c24b56399ba202ebf60bb60316e81d7996ccd02ae281a7e54f2f555e088a1ce1'
42             '770d75a5926bb924c6787a6f95ee9f7af743b629ea14005ab0375b57eb488f25'
43             '23f1710710eef1dcd1c490670de16d2d58dc98f3fdd9a2df186bdca590e57579'
44             'a04e554fb8b6d010c73e21de090f116dad6054e43e00edc80c59c71a8a1eaa0c'
45             '9594656bab084fea2ecf104e48c4dea3ccd8153f86a6ddbab04cdd0d5f6899a6')
47 package() {
48   install -d "$pkgdir"/usr/share/rocksndiamonds/levels
50   # install levels
51   cd "$srcdir"
52   cp -R levels/* "$pkgdir"/usr/share/rocksndiamonds/levels/
53   cp -R Sokoban "$pkgdir"/usr/share/rocksndiamonds/levels
54   cp -R Supaplex "$pkgdir"/usr/share/rocksndiamonds/levels
55   cp -R Contributions "$pkgdir"/usr/share/rocksndiamonds/levels
56   cp -R Contributions_1995-2000 "$pkgdir"/usr/share/rocksndiamonds/levels
57   cp -R Contributions_2001 "$pkgdir"/usr/share/rocksndiamonds/levels
58   cp -R Contributions_2002 "$pkgdir"/usr/share/rocksndiamonds/levels
59   cp -R Contributions_2003 "$pkgdir"/usr/share/rocksndiamonds/levels
60   cp -R RS_MIX_01-needs_rnd_jue "$pkgdir"/usr/share/rocksndiamonds/levels
61   cp -R RS_MIX_01-standalone "$pkgdir"/usr/share/rocksndiamonds/levels
63 #  cp -R rnd_jue "$pkgdir"/usr/share/rocksndiamonds/levels
65   cp -R rnd_jue-3.3.0.0/graphics/jue0 "$pkgdir"/usr/share/rocksndiamonds/graphics/
66   cp -R rnd_jue-3.3.0.0/levels/Contributions "$pkgdir"/usr/share/rocksndiamonds/levels/rnd-jue-Contributions
67   cp -R rnd_jue-3.3.0.0/levels/rnd_jue "$pkgdir"/usr/share/rocksndiamonds/levels/rnd-jue
68   cp -R rnd_jue-3.3.0.0/levels/Sokoban "$pkgdir"/usr/share/rocksndiamonds/levels/rnd-jue-Sokoban
69   cp -R rnd_jue-3.3.0.0/sounds/jue0 "$pkgdir"/usr/share/rocksndiamonds/sounds/
70   cp -R rnd_jue-3.3.0.0/music/jue0 "$pkgdir"/usr/share/rocksndiamonds/music/
72   cp -R BD2K3 "$pkgdir"/usr/share/rocksndiamonds/levels
73   cp -R Boulder_Dash_Dream "$pkgdir"/usr/share/rocksndiamonds/levels
74   cp -R Emerald_Mine_Club "$pkgdir"/usr/share/rocksndiamonds/levels
75   cp -R Snake_Bite "$pkgdir"/usr/share/rocksndiamonds/levels
76   cp -R zelda "$pkgdir"/usr/share/rocksndiamonds/levels
77   cp -R zelda2 "$pkgdir"/usr/share/rocksndiamonds/levels
79   chown -R root:root "$pkgdir"/usr/share/rocksndiamonds
80   find "$pkgdir"/usr/share/rocksndiamonds -type d -exec chmod 0755 {} \;
81   find "$pkgdir"/usr/share/rocksndiamonds -type f -exec chmod 0644 {} \;