Advertisement
Guest User

Untitled

a guest
Dec 24th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.64 KB | None | 0 0
  1. ## fixgles.patch
  2. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
  3. index 90f5867..fade46d 100644
  4. --- a/src/CMakeLists.txt
  5. +++ b/src/CMakeLists.txt
  6. @@ -170,7 +170,7 @@ endif()
  7.  
  8. find_package(Sqlite3 REQUIRED)
  9. find_package(Json REQUIRED)
  10. -find_package(OpenGLES2)
  11. +#find_package(OpenGLES2)
  12.  
  13. if(USE_FREETYPE)
  14. find_package(Freetype REQUIRED)
  15.  
  16.  
  17. ## PKGBUILD
  18. pkgname=('minetest-git')
  19. pkgver=3342
  20. pkgrel=1
  21. pkgdesc="An Infiniminer/Minecraft inspired game, git version."
  22. arch=('i686' 'x86_64')
  23. url="http://minetest.net/"
  24. license=('GPL')
  25. makedepends=('git' 'cmake' 'irrlicht' 'mesa' 'libjpeg' 'bzip2' 'libpng' 'zlib' 'luajit')
  26. depends=('libjpeg' 'bzip2' 'sqlite3' 'libgl' 'libxxf86vm' 'luajit')
  27. conflicts=('minetest-hg')
  28. provides=('minetest')
  29. source=(
  30. 'fixgles.patch'
  31. 'minetest::git+https://github.com/minetest/minetest.git'
  32. 'minetest_game::git+https://github.com/minetest/minetest_game.git'
  33. )
  34. md5sums=('SKIP' 'SKIP' 'SKIP')
  35. options=('!strip')
  36.  
  37. ## a lot of mods are available on github, you can activate some of the more popular
  38. ## ones here. If you want to build as part of your git current git builds.
  39. ## Some of mods have dependencies, so they'll be forced on down below.
  40.  
  41. #_bas080_vines=yes
  42.  
  43. ## includes moreblocks and moreores, maptools forces them on.
  44. _calinou_multi=yes
  45. _calinou_maptools=yes
  46.  
  47. # _PilzAdam_carts=yes
  48. # _PilzAdam_farming=yes
  49.  
  50. _Jeija_mesescons=yes
  51.  
  52. # _kaeza_survival=yes
  53.  
  54. # _MasterGollum_darkage=yes
  55.  
  56. # _mensche_desertuses=yes
  57.  
  58. _Novatux_mg=yes
  59.  
  60. # _paramat_chasm=yes
  61.  
  62. _RealBadAngel_technic=yes
  63.  
  64. _sapier_mobf=yes
  65.  
  66. # _Splizzard_snowbiome=yes
  67.  
  68. # _Traxxie_potions=yes
  69.  
  70. _VanessaE_gloopblocks=yes
  71. _VanessaE_homedecor=yes
  72. _VanessaE_pipeworks=yes
  73. _VanessaE_moretrees=yes
  74. _VanessaE_plantlife=yes
  75. _VanessaE_unifieddyes=yes
  76.  
  77.  
  78. if [[ "$_calinou_maptools" == "yes" ]]; then
  79. calinou_mods=yes
  80. fi
  81.  
  82. if [[ "$_bas080_vines" == "yes" || "$_VanessaE_unifieddyes" == "yes" || "$_VanessaE_moretrees" == "yes" ]]; then
  83. _VanessaE_plantlife=yes
  84. fi
  85.  
  86. if [[ "$_RealBadAngel_technic" == "yes" ]]; then
  87. _VanessaE_pipeworks=yes
  88. _VanessaE_plantlife=yes
  89. _Jeija_mesescons=yes
  90. _calinou_multi=yes
  91.  
  92. fi
  93.  
  94. if [[ "$_bas080_vines" == "yes" ]]; then
  95. pkgname+=('minetest-vines-git')
  96. source+=('vines::git+https://github.com/bas080/vines.git')
  97. md5sums+=('SKIP')
  98. fi
  99.  
  100. if [[ "$_calinou_multi" == "yes" ]]; then
  101. pkgname+=('minetest-calinou-mods-git')
  102. source+=('calinou_mods::git+https://github.com/Calinou/calinou_mods')
  103. md5sums+=('SKIP')
  104. fi
  105.  
  106. if [[ "$_Jeija_mesescons" == "yes" ]]; then
  107. pkgname+=('minetest-mesecons-git')
  108. source+=('mesecons::git+https://github.com/Jeija/minetest-mod-mesecons')
  109. md5sums+=('SKIP')
  110. fi
  111.  
  112. if [[ "$_PilzAdam_carts" == "yes" ]]; then
  113. pkgname+=('minetest-carts-git')
  114. source+=('carts::git+https://github.com/PilzAdam/carts.git')
  115. md5sums+=('SKIP')
  116. fi
  117.  
  118. if [[ "$_PilzAdam_farming" == "yes" ]]; then
  119. pkgname+=('minetest-farming-git')
  120. source+=('farming::git+https://github.com/PilzAdam/farming.git'
  121. 'farming_plus::git+https://github.com/PilzAdam/farming_plus')
  122. md5sums+=('SKIP' 'SKIP')
  123. fi
  124.  
  125. if [[ "$_kaeza_survival" == "yes" ]]; then
  126. pkgname+=('minetest-survival-git')
  127. source+=('survivalmodpack::git+https://github.com/kaeza/minetest-survival_modpack.git')
  128. md5sums+=('SKIP')
  129. fi
  130.  
  131. if [[ "$_MasterGollum_darkage" == "yes" ]]; then
  132. pkgname+=('minetest-darkage-git')
  133. source+=('darkage::git+https://github.com/MasterGollum/darkage.git')
  134. md5sums+=('SKIP')
  135. fi
  136.  
  137. if [[ "$_mensche_desertuses" == "yes" ]]; then
  138. pkgname+=('minetest-desert_uses-git')
  139. source+=('desert_uses::git+https://git.gitorious.org/minetest_mods_menche/desert_uses.git')
  140. md5sums+=('SKIP')
  141. fi
  142.  
  143. if [[ "$_Novatux_mg" == "yes" ]]; then
  144. pkgname+=('minetest-mg-git')
  145. source+=('mg::git+https://github.com/Novatux/mg.git')
  146. md5sums+=('SKIP')
  147. fi
  148.  
  149. if [[ "$_paramat_chasm" == "yes" ]]; then
  150. pkgname+=('minetest-chasms-git')
  151. source+=('chasm::git+https://github.com/paramat/chasm.git')
  152. md5sums+=('SKIP')
  153. fi
  154.  
  155. if [[ "$_RealBadAngel_technic" == "yes" ]]; then
  156. pkgname+=('minetest-technic-git')
  157. source+=('technic::git+https://github.com/RealBadAngel/technic.git')
  158. md5sums+=('SKIP')
  159. fi
  160.  
  161. if [[ "$_sapier_mobf" == "yes" ]]; then
  162. pkgname+=('minetest-mobframework-git')
  163. source+=('mobframework::git+https://github.com/sapier/animals_modpack.git')
  164. md5sums+=('SKIP')
  165. fi
  166.  
  167. if [[ "$_Splizzard_snowbiome" == "yes" ]]; then
  168. pkgname+=('minetest-snowbiome-git')
  169. source+=('snowbiome::git+https://github.com/Splizard/minetest-mod-snow.git')
  170. md5sums+=('SKIP')
  171. fi
  172.  
  173. if [[ "$_Traxxie_potions" == "yes" ]]; then
  174. pkgname+=('minetest-potions-git')
  175. source+=('potions::git+https://github.com/Traxie21/potions.git')
  176. md5sums+=('SKIP')
  177. fi
  178.  
  179. if [[ "$_VanessaE_gloopblocks" == "yes" ]]; then
  180. pkgname+=('minetest-gloopblocks-git')
  181. source+=('gloopblocks::git+https://github.com/VanessaE/gloopblocks.git')
  182. md5sums+=('SKIP')
  183. fi
  184.  
  185. if [[ "$_VanessaE_homedecor" == "yes" ]]; then
  186. pkgname+=('minetest-homedecor-git')
  187. source+=('homedecor::git+https://github.com/VanessaE/homedecor.git')
  188. md5sums+=('SKIP')
  189. fi
  190.  
  191. if [[ "$_VanessaE_pipeworks" == "yes" ]]; then
  192. pkgname+=('minetest-pipeworks-git')
  193. source+=('pipeworks::git+https://github.com/VanessaE/pipeworks.git')
  194. md5sums+=('SKIP')
  195. fi
  196.  
  197. if [[ "$_VanessaE_moretrees" == "yes" ]]; then
  198. pkgname+=('minetest-moretrees-git')
  199. source+=('moretrees::git+https://github.com/VanessaE/moretrees.git')
  200. md5sums+=('SKIP')
  201. fi
  202.  
  203. if [[ "$_VanessaE_plantlife" == "yes" ]]; then
  204. pkgname+=('minetest-plantlife-git')
  205. source+=('plantlife::git+https://github.com/VanessaE/plantlife.git')
  206. md5sums+=('SKIP')
  207. fi
  208.  
  209. if [[ "$_VanessaE_unifieddyes" == "yes" ]]; then
  210. pkgname+=('minetest-unifieddyes-git')
  211. source+=('unifieddyes::git+https://github.com/VanessaE/unifieddyes.git')
  212. md5sums+=('SKIP')
  213. fi
  214.  
  215. pkgver() {
  216. # activity is high enough in the master branch, so just use the amount of commits there.
  217. cd "$srcdir/minetest"
  218. git rev-list --count master
  219. # date +%Y%m%d
  220. }
  221.  
  222. prepare() {
  223. cd "$srcdir"
  224. # The repos still have the .git folder inside src, get rid of it;
  225. # we're copying many of them and don't want the .git folders in the packages.
  226. # rm -rf ./*/.git
  227. }
  228.  
  229. build() {
  230. cd "$srcdir/minetest"
  231. patch -p1 -u -i ../fixgles.patch
  232. cmake . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_GETTEXT=ON -DENABLE_FREETYPE=ON
  233. make
  234. }
  235.  
  236. package_minetest-git() {
  237. cd "$srcdir"
  238. make -C minetest DESTDIR="${pkgdir}" install
  239.  
  240. mkdir -p "$pkgdir/usr/share/minetest/games/common"
  241. # cp -r minetest_common/mods "$pkgdir/usr/share/minetest/games/common/"
  242. cp -r minetest_game "${pkgdir}/usr/share/minetest/games/"
  243. # cp -r minetest_build "${pkgdir}/usr/share/minetest/games/build"
  244. # cp -r minetest_survival "${pkgdir}/usr/share/minetest/games/survival"
  245. }
  246.  
  247. package_minetest-vines-git() {
  248. depends=("minetest-git=${pkgver}")
  249. pkgdesc="Adds vines and climbable plants"
  250.  
  251. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  252. cp -r vines "$pkgdir/usr/share/minetest/mods/"
  253. }
  254.  
  255. package_minetest-calinou-mods-git() {
  256. depends=("minetest-git=${pkgver}")
  257. pkgdesc="Mod collection for minetest that adds many blocks and ores"
  258.  
  259. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  260. cp -r calinou_mods/more{blocks,ores} "$pkgdir/usr/share/minetest/mods/"
  261.  
  262. if [[ "$_calinou_maptools" == "yes" ]]; then
  263. cp -r calinou_mods/maptools "$pkgdir/usr/share/minetest/mods/"
  264. fi
  265. }
  266.  
  267. package_minetest-carts-git() {
  268. depends=("minetest-git=${pkgver}")
  269. pkgdesc="Minetest cart mods by PilzAdam"
  270.  
  271. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  272. cp -r carts "$pkgdir/usr/share/minetest/mods/"
  273. }
  274.  
  275. package_minetest-farming-git() {
  276. depends=("minetest-git=${pkgver}")
  277. pkgdesc="Minetest farming mods by PilzAdam"
  278.  
  279. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  280. cp -r farming "$pkgdir/usr/share/minetest/mods/"
  281. cp -r farming_plus "$pkgdir/usr/share/minetest/mods/"
  282. }
  283.  
  284. package_minetest-survival-git() {
  285. depends=("minetest-git=${pkgver}")
  286. pkgdesc="A survival themed modpack"
  287.  
  288. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  289. cp -r survivalmodpack/survival* "$pkgdir/usr/share/minetest/mods/"
  290. }
  291.  
  292. package_minetest-darkage-git() {
  293. depends=("minetest-git=${pkgver}")
  294. pkgdesc="A mod that adds several dark age themed blocks"
  295.  
  296. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  297. cp -r darkage "$pkgdir/usr/share/minetest/mods/"
  298. }
  299.  
  300. package_minetest-desert_uses-git() {
  301. depends=("minetest-git=${pkgver}")
  302. pkgdesc="A mod that adds several blocks based around the desert biome"
  303.  
  304. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  305. cp -r desert_uses "$pkgdir/usr/share/minetest/mods/"
  306. }
  307.  
  308. package_minetest-mesecons-git() {
  309. depends=("minetest-git=${pkgver}")
  310. pkgdesc="Mod collection for minetest that mirrors redstone functionality of minecraft"
  311.  
  312. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  313. cp -r mesecons/ "$pkgdir/usr/share/minetest/mods/"
  314. }
  315.  
  316. package_minetest-technic-git() {
  317. depends=("minetest-git=${pkgver}")
  318. pkgdesc="A mod collection that features blocks, stargates and other things."
  319.  
  320. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  321. cp -r technic "$pkgdir/usr/share/minetest/mods/"
  322. }
  323.  
  324. package_minetest-mobframework-git() {
  325. depends=("minetest-git=${pkgver}")
  326. pkgdesc="Mod collection for minetest that adds overworld critters, both passive and hostile"
  327.  
  328. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  329. cp -r mobframework/* "$pkgdir/usr/share/minetest/mods/"
  330. }
  331.  
  332. package_minetest-snowbiome-git() {
  333. depends=("minetest-git=${pkgver}")
  334. pkgdesc="Mod that adds a collection of snow biomes"
  335.  
  336. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  337. cp -r snowbiome "$pkgdir/usr/share/minetest/mods/snow"
  338. }
  339.  
  340. package_minetest-chasms-git() {
  341. depends=("minetest-git=${pkgver}")
  342. pkgdesc="Mod that adds chasms to the mapgen"
  343.  
  344. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  345. cp -r chasm "$pkgdir/usr/share/minetest/mods/chasm"
  346. }
  347.  
  348. package_minetest-potions-git() {
  349. depends=("minetest-git=${pkgver}")
  350. pkgdesc="A mod that adds potions and a general API for them."
  351.  
  352. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  353. cp -r potions "$pkgdir/usr/share/minetest/mods/"
  354. }
  355.  
  356. package_minetest-gloopblocks-git() {
  357. depends=("minetest-git=${pkgver}")
  358. pkgdesc="A collection of additional blocks"
  359.  
  360. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  361. cp -r gloopblocks "$pkgdir/usr/share/minetest/mods/"
  362. }
  363.  
  364. package_minetest-pipeworks-git() {
  365. depends=("minetest-git=${pkgver}")
  366. pkgdesc="Intricate mod that adds a large collection of functional pipes"
  367.  
  368. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  369. cp -r pipeworks "$pkgdir/usr/share/minetest/mods/"
  370. }
  371.  
  372. package_minetest-moretrees-git() {
  373. depends=("minetest-git=${pkgver}")
  374. pkgdesc="Many new tree shapes and growth formations for minetest"
  375.  
  376. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  377. cp -r moretrees "$pkgdir/usr/share/minetest/mods/"
  378. }
  379.  
  380. package_minetest-mg-git() {
  381. depends=("minetest-git=${pkgver}")
  382. pkgdesc="Novatux's biomes and cities mod for minetest"
  383.  
  384. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  385. cp -r mg "$pkgdir/usr/share/minetest/mods/"
  386. }
  387.  
  388. package_minetest-homedecor-git() {
  389. depends=("minetest-git=${pkgver}")
  390. pkgdesc="Adds many new blocks, primarily centred around home decoration"
  391.  
  392. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  393. cp -r homedecor "$pkgdir/usr/share/minetest/mods/"
  394. }
  395.  
  396. package_minetest-plantlife-git() {
  397. depends=("minetest-git=${pkgver}")
  398. pkgdesc="A plant growing library, used in a great many mods"
  399.  
  400. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  401. rm plantlife/{*.txt,README}
  402. cp -r plantlife/* "$pkgdir/usr/share/minetest/mods/"
  403. }
  404.  
  405. package_minetest-unifieddyes-git() {
  406. depends=("minetest-git=${pkgver}")
  407. pkgdesc="A unified dye pack of 89 colours; used in a great many mods"
  408.  
  409. mkdir -p "$pkgdir/usr/share/minetest/mods/"
  410. cp -r unifieddyes "$pkgdir/usr/share/minetest/mods/"
  411. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement