secret
Last active

Patch for <https://aur.archlinux.org/packages/eufloria-hib>, apply with `patch PKGBUILD < PKGBUILD.patch`.

  • Download Gist
PKGBUILD.patch
Diff
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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
@@ -8,36 +8,28 @@
url='http://www.eufloria-game.com/'
arch=('i686' 'x86_64')
license=('custom:commercial')
-depends=('libgl' 'mesa' 'sdl' 'sdl_mixer' 'sdl_image')
-optdepends=('catalyst: AMD Proprietary 3D driver'
- 'nvidia: NVIDIA Proprietary 3D driver')
-source=('eufloria-hib.desktop')
-sha256sums=('113594905a347ef84ec2995a89389584babd95591ff5d3ca65072a2d3f38d5d2')
+depends=('glu' 'sdl_image' 'sdl_mixer' 'nvidia-cg-toolkit')
+source=("eufloria-hib.desktop" "hib://EufloriaHD-Linux-${pkgver}.sh")
+sha256sums=('113594905a347ef84ec2995a89389584babd95591ff5d3ca65072a2d3f38d5d2'
+ '40271b57827d55f70818f85d8c0c9e1091cf8726119e3a99a59d07630f72a8fb')
options=("!upx")
PKGEXT='.pkg.tar'
-
-_gamepkg="EufloriaHD-Linux-${pkgver}.sh"
-
+DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Manually download it to \"$(pwd)\", or set up a hib:// DLAGENT in /etc/makepkg.conf."; exit 1')
package() {
cd $srcdir
- # Get installer
- _get_humblebundle_source "${_gamepkg}" || {
- error "Unable to find the game archive. Please download it from your Humble
- Bundle page, and place it into one of the above locations."
- exit 1; }
-
# Execute installer
msg "Starting setup..."
[[ -d "./temp" ]] && rm -r "./temp"
- sh "./${_gamepkg}" --unattended --no-register --keep --overwrite \
+ sh "./${source[1]#hib://}" --unattended --no-register --keep --overwrite \
--target "${srcdir}/temp" \
--bindir "${srcdir}/bin" \
--datadir "${pkgdir}/opt"
# Remove bundled libraries & helper binaries (use system packages instead)
- rm -rf "${pkgdir}/opt/EufloriaHD/xdg-"*
+ rm -rf "${pkgdir}/opt/EufloriaHD/xdg-"* \
+ "${pkgdir}/opt/EufloriaHD/lib64"
# Fix permissions
find "${pkgdir}" -type f -exec chmod 644 "{}" +
@@ -62,25 +54,3 @@
# Install license file
install -Dm644 "temp/config/license" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-
-
-# Locate a game archive from one of the Humble Bundles, and symlink it into $srcdir
-_get_humblebundle_source() {
- _get_local_source "$1" || return 1;
- # TODO: Implement automatic downloading from Humble Bundle site
-}
-
-# Locate a file or folder provided by the user, and symlink it into $srcdir
-_get_local_source() {
- msg "Looking for '$1'..."
- declare -A _search=(['build dir']="$startdir"
- ['$LOCAL_PACKAGE_SOURCES']="$LOCAL_PACKAGE_SOURCES")
- for _key in "${!_search[@]}"; do local _dir="${_search["$_key"]}"
- if [ -z "$_dir" ]; then _dir="<undefined>"; fi
- echo -n " - in $_key ['$_dir'] ... ";
- if [ -e "$_dir/$1" ]; then
- echo "FOUND"; ln -sfT "$(readlink -f "$_dir/$1")" "$srcdir/$1"; break; fi
- echo "NOT FOUND"
- done
- if [ ! -e "$srcdir/$1" ]; then return 1; fi
-}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.