You are not logged in.

#1 2012-12-13 19:08:06

fettouhi
Member
Registered: 2007-05-07
Posts: 652

[SOLVED] Vessel PKGBUILD

Since Vessel from HIB6 just hit linux I decided to take a stab at the PKGBUILD. This is based on the supermeatboy PKGBUILD from AUR.

# Maintainer: afettouhi <A.Fettouhi@gmail.com>

pkgname=vessel
pkgver=08122012
_pkgver=12082012
pkgrel=1
pkgdesc="Vessel is a physics-based, steampunk puzzle-platform video game developed by Strange Loop Games."
url="http://www.supermeatboy.com/"
license=('custom')
arch=('i686' 'x86_64')
groups=("humble-indie-bundle6" "games")
depends=('openal' 'sdl')
source=("${pkgname}-${_pkgver}-bin" 
        "${pkgname}.install"
        "${pkgname}.desktop"
        "${pkgname}.sh")
md5sums=("cdb4e42ac3dede4478f54bfe15ebfbeb"
         "b25345577b44fbeeba96c6cc87f11c1e"
         "6057700248d5796056b1096962d53877"
         "174d23fe24b496e2cdda1d136327174e")
makedepends=('unzip')
options=('!strip')
# if [[ -f "${source[0]%%:*}" ]]; then
#   makedepends=('unzip')
# else
#   makedepends=('unzip' 'humblepie')
# fi
PKGEXT=".pkg.tar"

package() {
  mkdir -p "${pkgdir}/opt/games/${pkgname}"
  [[ -f "${source[0]}" ]] ||
    error "Place the game or a symlink to the game in ${startdir}"
  unzip -u "${source[0]}" -d "${pkgdir}/opt/games/${pkgname}" || true
  find "${pkgdir}" -type f -exec chmod 644 "{}" +
  install -Dm644 "${pkgname}".desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  install -Dm755 "${pkgname}".sh "${pkgdir}/usr/bin/${pkgname}"
  chmod 755 "${pkgdir}/opt/games/${pkgname}/data/Vessel" \
    "${pkgdir}/opt/games/${pkgname}/data/x86/vessel.x86"
}

# vim: ft=PKGBUILD sts=2 ts=2 sw=2 et

here are the install, desktop and sh files as well.

vessel.desktop:

[Desktop Entry]
Encoding=UTF-8
Value=1.0
Type=Application
Name=Vessel
GenericName=Vessel
Comment=Vessel is a physics-based, steampunk puzzle-platform video game developed by Strange Loop Games
Icon=/opt/games/vessel/data/Vessel.bmp
Exec=/opt/games/vessel/data/Vessel
Categories=Game
Path=/opt/games/vessel

vessel.install:

post_install() {
  echo "If you used the torrent download option,"
  echo "please remember to reseed!"
}

post_upgrade() {
  post_install
}
# vim:set ts=2 sw=2 et:

and finally vessel.sh:

#!/usr/bin/env bash

exec /opt/games/vessel/data/Vessel

I currently have two issues with the PKGBUILD.

1. The icon for the desktop file is currently only available as a bmp file. So should I just make a png from that?

2. when I try to make a the src package in order to upload it to AUR. It pulls in the vessel bin file, so that the src.tar.gz is 455 MB. How do I avoid that?

Last edited by fettouhi (2014-10-02 08:50:43)

Offline

#2 2012-12-13 19:10:52

fettouhi
Member
Registered: 2007-05-07
Posts: 652

Re: [SOLVED] Vessel PKGBUILD

I've succesfully build the package on Arch 64 bit and the game runs quite nicely. Gamepad is messed up though, the axis are reversed for some reason (tested on an original xbox 360 controller (wired)).

Offline

#3 2012-12-13 20:07:06

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: [SOLVED] Vessel PKGBUILD

It builds fine for me, but I get the following error when I try to run vessel:

libGL error: failed to load driver: r600
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
ERROR: Missing required OpenGL extensions:
	- GL_EXT_texture_compression_s3tc

Please make sure your OpenGL drivers are installed correctly.

Can't continue.

I'm not sure if that's a dependency issue or just something in my config I don't know about.

Offline

#4 2012-12-13 20:31:09

fettouhi
Member
Registered: 2007-05-07
Posts: 652

Re: [SOLVED] Vessel PKGBUILD

Are you using a open source driver? You may need to install

libtxc_dxtn or libtxc_dxtn_s2tc or both or the lib32 versions depending on if you are on 32 or 64 bit.

Offline

#5 2012-12-13 20:38:06

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: [SOLVED] Vessel PKGBUILD

fettouhi wrote:

Are you using a open source driver? You may need to install

libtxc_dxtn or libtxc_dxtn_s2tc or both or the lib32 versions depending on if you are on 32 or 64 bit.

I am using xf86-video-dri on a 64-bit system, and I already have libtxc_dxtn installed. libtxc_dxtn_s2tc won't install (error downloading).

Offline

#6 2012-12-13 21:47:00

fettouhi
Member
Registered: 2007-05-07
Posts: 652

Re: [SOLVED] Vessel PKGBUILD

Fixed the issue with the missing icon in the desktop entry.

@ibrunoton: Do you have lib32-libtxc_dxtn installed as well?

Offline

#7 2012-12-14 01:04:58

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: [SOLVED] Vessel PKGBUILD

fettouhi wrote:

@ibrunoton: Do you have lib32-libtxc_dxtn installed as well?

I just tried that, and got this error message when I tried to run vessel:

libGL error: failed to load driver: r600
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
LLVM ERROR: Program used external function '' which could not be resolved!
pure virtual method called
terminate called without an active exception
/opt/games/vessel/data/Vessel: line 19: 30049 Aborted                 (core dumped) ./x86/vessel.x86

Offline

#8 2012-12-14 08:30:01

fettouhi
Member
Registered: 2007-05-07
Posts: 652

Re: [SOLVED] Vessel PKGBUILD

Do you have the lib32 version of your driver installed as well? I can see that you use r600 so you should have lib32-ati-dri installed.

Offline

#9 2012-12-14 11:08:01

fettouhi
Member
Registered: 2007-05-07
Posts: 652

Re: [SOLVED] Vessel PKGBUILD

OK, vessel PKGBUILD has been uploaded

https://aur.archlinux.org/packages/vessel/

Offline

#10 2012-12-14 11:10:46

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: [SOLVED] Vessel PKGBUILD

fettouhi wrote:

Do you have the lib32 version of your driver installed as well? I can see that you use r600 so you should have lib32-ati-dri installed.

I installed that, and vessel runs now...but...very...slowly... (though CPU and memory usage remains low)

Offline

#11 2014-10-02 08:49:15

fettouhi
Member
Registered: 2007-05-07
Posts: 652

Re: [SOLVED] Vessel PKGBUILD

ibrunton wrote:
fettouhi wrote:

Do you have the lib32 version of your driver installed as well? I can see that you use r600 so you should have lib32-ati-dri installed.

I installed that, and vessel runs now...but...very...slowly... (though CPU and memory usage remains low)

Do you have the multi core option turned on? If so turn it off.

Offline

#12 2014-10-02 08:50:26

fettouhi
Member
Registered: 2007-05-07
Posts: 652

Re: [SOLVED] Vessel PKGBUILD

Has been added to AUR and has been for some time now.

https://aur.archlinux.org/packages/vessel/

Offline

Board footer

Powered by FluxBB