Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## fixgles.patch
- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
- index 90f5867..fade46d 100644
- --- a/src/CMakeLists.txt
- +++ b/src/CMakeLists.txt
- @@ -170,7 +170,7 @@ endif()
- find_package(Sqlite3 REQUIRED)
- find_package(Json REQUIRED)
- -find_package(OpenGLES2)
- +#find_package(OpenGLES2)
- if(USE_FREETYPE)
- find_package(Freetype REQUIRED)
- ## PKGBUILD
- pkgname=('minetest-git')
- pkgver=3342
- pkgrel=1
- pkgdesc="An Infiniminer/Minecraft inspired game, git version."
- arch=('i686' 'x86_64')
- url="http://minetest.net/"
- license=('GPL')
- makedepends=('git' 'cmake' 'irrlicht' 'mesa' 'libjpeg' 'bzip2' 'libpng' 'zlib' 'luajit')
- depends=('libjpeg' 'bzip2' 'sqlite3' 'libgl' 'libxxf86vm' 'luajit')
- conflicts=('minetest-hg')
- provides=('minetest')
- source=(
- 'fixgles.patch'
- 'minetest::git+https://github.com/minetest/minetest.git'
- 'minetest_game::git+https://github.com/minetest/minetest_game.git'
- )
- md5sums=('SKIP' 'SKIP' 'SKIP')
- options=('!strip')
- ## a lot of mods are available on github, you can activate some of the more popular
- ## ones here. If you want to build as part of your git current git builds.
- ## Some of mods have dependencies, so they'll be forced on down below.
- #_bas080_vines=yes
- ## includes moreblocks and moreores, maptools forces them on.
- _calinou_multi=yes
- _calinou_maptools=yes
- # _PilzAdam_carts=yes
- # _PilzAdam_farming=yes
- _Jeija_mesescons=yes
- # _kaeza_survival=yes
- # _MasterGollum_darkage=yes
- # _mensche_desertuses=yes
- _Novatux_mg=yes
- # _paramat_chasm=yes
- _RealBadAngel_technic=yes
- _sapier_mobf=yes
- # _Splizzard_snowbiome=yes
- # _Traxxie_potions=yes
- _VanessaE_gloopblocks=yes
- _VanessaE_homedecor=yes
- _VanessaE_pipeworks=yes
- _VanessaE_moretrees=yes
- _VanessaE_plantlife=yes
- _VanessaE_unifieddyes=yes
- if [[ "$_calinou_maptools" == "yes" ]]; then
- calinou_mods=yes
- fi
- if [[ "$_bas080_vines" == "yes" || "$_VanessaE_unifieddyes" == "yes" || "$_VanessaE_moretrees" == "yes" ]]; then
- _VanessaE_plantlife=yes
- fi
- if [[ "$_RealBadAngel_technic" == "yes" ]]; then
- _VanessaE_pipeworks=yes
- _VanessaE_plantlife=yes
- _Jeija_mesescons=yes
- _calinou_multi=yes
- fi
- if [[ "$_bas080_vines" == "yes" ]]; then
- pkgname+=('minetest-vines-git')
- source+=('vines::git+https://github.com/bas080/vines.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_calinou_multi" == "yes" ]]; then
- pkgname+=('minetest-calinou-mods-git')
- source+=('calinou_mods::git+https://github.com/Calinou/calinou_mods')
- md5sums+=('SKIP')
- fi
- if [[ "$_Jeija_mesescons" == "yes" ]]; then
- pkgname+=('minetest-mesecons-git')
- source+=('mesecons::git+https://github.com/Jeija/minetest-mod-mesecons')
- md5sums+=('SKIP')
- fi
- if [[ "$_PilzAdam_carts" == "yes" ]]; then
- pkgname+=('minetest-carts-git')
- source+=('carts::git+https://github.com/PilzAdam/carts.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_PilzAdam_farming" == "yes" ]]; then
- pkgname+=('minetest-farming-git')
- source+=('farming::git+https://github.com/PilzAdam/farming.git'
- 'farming_plus::git+https://github.com/PilzAdam/farming_plus')
- md5sums+=('SKIP' 'SKIP')
- fi
- if [[ "$_kaeza_survival" == "yes" ]]; then
- pkgname+=('minetest-survival-git')
- source+=('survivalmodpack::git+https://github.com/kaeza/minetest-survival_modpack.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_MasterGollum_darkage" == "yes" ]]; then
- pkgname+=('minetest-darkage-git')
- source+=('darkage::git+https://github.com/MasterGollum/darkage.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_mensche_desertuses" == "yes" ]]; then
- pkgname+=('minetest-desert_uses-git')
- source+=('desert_uses::git+https://git.gitorious.org/minetest_mods_menche/desert_uses.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_Novatux_mg" == "yes" ]]; then
- pkgname+=('minetest-mg-git')
- source+=('mg::git+https://github.com/Novatux/mg.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_paramat_chasm" == "yes" ]]; then
- pkgname+=('minetest-chasms-git')
- source+=('chasm::git+https://github.com/paramat/chasm.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_RealBadAngel_technic" == "yes" ]]; then
- pkgname+=('minetest-technic-git')
- source+=('technic::git+https://github.com/RealBadAngel/technic.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_sapier_mobf" == "yes" ]]; then
- pkgname+=('minetest-mobframework-git')
- source+=('mobframework::git+https://github.com/sapier/animals_modpack.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_Splizzard_snowbiome" == "yes" ]]; then
- pkgname+=('minetest-snowbiome-git')
- source+=('snowbiome::git+https://github.com/Splizard/minetest-mod-snow.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_Traxxie_potions" == "yes" ]]; then
- pkgname+=('minetest-potions-git')
- source+=('potions::git+https://github.com/Traxie21/potions.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_VanessaE_gloopblocks" == "yes" ]]; then
- pkgname+=('minetest-gloopblocks-git')
- source+=('gloopblocks::git+https://github.com/VanessaE/gloopblocks.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_VanessaE_homedecor" == "yes" ]]; then
- pkgname+=('minetest-homedecor-git')
- source+=('homedecor::git+https://github.com/VanessaE/homedecor.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_VanessaE_pipeworks" == "yes" ]]; then
- pkgname+=('minetest-pipeworks-git')
- source+=('pipeworks::git+https://github.com/VanessaE/pipeworks.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_VanessaE_moretrees" == "yes" ]]; then
- pkgname+=('minetest-moretrees-git')
- source+=('moretrees::git+https://github.com/VanessaE/moretrees.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_VanessaE_plantlife" == "yes" ]]; then
- pkgname+=('minetest-plantlife-git')
- source+=('plantlife::git+https://github.com/VanessaE/plantlife.git')
- md5sums+=('SKIP')
- fi
- if [[ "$_VanessaE_unifieddyes" == "yes" ]]; then
- pkgname+=('minetest-unifieddyes-git')
- source+=('unifieddyes::git+https://github.com/VanessaE/unifieddyes.git')
- md5sums+=('SKIP')
- fi
- pkgver() {
- # activity is high enough in the master branch, so just use the amount of commits there.
- cd "$srcdir/minetest"
- git rev-list --count master
- # date +%Y%m%d
- }
- prepare() {
- cd "$srcdir"
- # The repos still have the .git folder inside src, get rid of it;
- # we're copying many of them and don't want the .git folders in the packages.
- # rm -rf ./*/.git
- }
- build() {
- cd "$srcdir/minetest"
- patch -p1 -u -i ../fixgles.patch
- cmake . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_GETTEXT=ON -DENABLE_FREETYPE=ON
- make
- }
- package_minetest-git() {
- cd "$srcdir"
- make -C minetest DESTDIR="${pkgdir}" install
- mkdir -p "$pkgdir/usr/share/minetest/games/common"
- # cp -r minetest_common/mods "$pkgdir/usr/share/minetest/games/common/"
- cp -r minetest_game "${pkgdir}/usr/share/minetest/games/"
- # cp -r minetest_build "${pkgdir}/usr/share/minetest/games/build"
- # cp -r minetest_survival "${pkgdir}/usr/share/minetest/games/survival"
- }
- package_minetest-vines-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Adds vines and climbable plants"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r vines "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-calinou-mods-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Mod collection for minetest that adds many blocks and ores"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r calinou_mods/more{blocks,ores} "$pkgdir/usr/share/minetest/mods/"
- if [[ "$_calinou_maptools" == "yes" ]]; then
- cp -r calinou_mods/maptools "$pkgdir/usr/share/minetest/mods/"
- fi
- }
- package_minetest-carts-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Minetest cart mods by PilzAdam"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r carts "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-farming-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Minetest farming mods by PilzAdam"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r farming "$pkgdir/usr/share/minetest/mods/"
- cp -r farming_plus "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-survival-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="A survival themed modpack"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r survivalmodpack/survival* "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-darkage-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="A mod that adds several dark age themed blocks"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r darkage "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-desert_uses-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="A mod that adds several blocks based around the desert biome"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r desert_uses "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-mesecons-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Mod collection for minetest that mirrors redstone functionality of minecraft"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r mesecons/ "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-technic-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="A mod collection that features blocks, stargates and other things."
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r technic "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-mobframework-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Mod collection for minetest that adds overworld critters, both passive and hostile"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r mobframework/* "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-snowbiome-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Mod that adds a collection of snow biomes"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r snowbiome "$pkgdir/usr/share/minetest/mods/snow"
- }
- package_minetest-chasms-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Mod that adds chasms to the mapgen"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r chasm "$pkgdir/usr/share/minetest/mods/chasm"
- }
- package_minetest-potions-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="A mod that adds potions and a general API for them."
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r potions "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-gloopblocks-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="A collection of additional blocks"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r gloopblocks "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-pipeworks-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Intricate mod that adds a large collection of functional pipes"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r pipeworks "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-moretrees-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Many new tree shapes and growth formations for minetest"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r moretrees "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-mg-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Novatux's biomes and cities mod for minetest"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r mg "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-homedecor-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="Adds many new blocks, primarily centred around home decoration"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r homedecor "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-plantlife-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="A plant growing library, used in a great many mods"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- rm plantlife/{*.txt,README}
- cp -r plantlife/* "$pkgdir/usr/share/minetest/mods/"
- }
- package_minetest-unifieddyes-git() {
- depends=("minetest-git=${pkgver}")
- pkgdesc="A unified dye pack of 89 colours; used in a great many mods"
- mkdir -p "$pkgdir/usr/share/minetest/mods/"
- cp -r unifieddyes "$pkgdir/usr/share/minetest/mods/"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement