AUR4 split: Initial Commit

This commit is contained in:
J0k3r 2014-02-07 20:01:46 +01:00
commit df384dc224
5 changed files with 118 additions and 0 deletions

27
.SRCINFO Normal file
View file

@ -0,0 +1,27 @@
pkgbase = hotlinemiami
pkgdesc = A 2D top-down action video game
pkgver = 1.0.9a
pkgrel = 2
url = http://hotlinemiami.com/
arch = i686
arch = x86_64
groups = games
license = unknown
depends = openal
depends = libvorbis
depends = nvidia-cg-toolkit
depends = glu
depends = fontconfig
depends = lib32-xrandr
depends = libxrandr
depends = qt5-base
noextract = hotlinemiami_v1.0.9a-Linux_28-05-2013.tar.gz
source = hib://hotlinemiami_v1.0.9a-Linux_28-05-2013.tar.gz
source = hotlinemiami.desktop
source = hotlinemiami.png
sha256sums = 070300558ba52f75455d1645bba6dd956f460ada0d3839f8b3c3ac712ba957da
sha256sums = ca65c11bc9e06f438b2da2bb44c40424537e60b704656a155f672b16fde5f8de
sha256sums = 01432c725bd258761e67fe1db94531465ba0480e250724cf6b939669e13b0e8a
pkgname = hotlinemiami

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
pkg/
src/
*.pkg.*
*.src.*
[Hh]otline[Mm]iami_*.tar.gz

77
PKGBUILD Normal file
View file

@ -0,0 +1,77 @@
# Maintainer: J0k3r <moebius282 e4at gmail D0_T com>
pkgname=hotlinemiami
pkgver=1.0.9a
pkgrel=2
pkgdesc="A 2D top-down action video game"
url="http://hotlinemiami.com/"
license=('unknown')
# © Dennaton Interactive Design of the Future ™
arch=('i686' 'x86_64')
groups=("games")
if [ "$CARCH" = "x86_64" ]; then
depends=('lib32-openal' 'lib32-libvorbis' 'lib32-nvidia-cg-toolkit' 'lib32-glu' 'lib32-fontconfig' 'lib32-libxrandr')
else
depends=('openal' 'libvorbis' 'nvidia-cg-toolkit' 'glu' 'fontconfig' 'lib32-xrandr' 'libxrandr' 'qt5-base' )
fi
_archivename="${pkgname}_v${pkgver}-Linux_28-05-2013"
source=("hib://${_archivename}.tar.gz"
"${pkgname}.desktop"
"${pkgname}.png")
sha256sums=('070300558ba52f75455d1645bba6dd956f460ada0d3839f8b3c3ac712ba957da'
'ca65c11bc9e06f438b2da2bb44c40424537e60b704656a155f672b16fde5f8de'
'01432c725bd258761e67fe1db94531465ba0480e250724cf6b939669e13b0e8a')
noextract=("${source[0]:6}")
PKGEXT=".pkg.tar"
# You can download the Humble Indie Bundle file manually, or you can configure
# DLAGENTS in makepkg.conf to auto-download.
#
# For example, to use hib-dlagent to download files set something like this in
# your makepkg.conf (change/add -k and add -u/-p to your needs):
# DLAGENTS=('hib::/usr/bin/hib-dlagent -k 1a2b3c -o %o $(echo %u | cut -c 7-)')
#
# To auto-search through a directory containing Humble Bundle downloads, you
# could set:
# DLAGENTS=('hib::/usr/bin/find /path/to/downloads -name $(echo %u | cut -c 7-) -exec ln -s \{\} %o \; -quit')
DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Download manually to \"$(pwd)\" or setup hib:// DLAGENT in /etc/makepkg.conf."; exit 1')
package()
{
install -d "${pkgdir}/opt/${pkgname}/"
# Otherwise it extract the files loosely in $srcdir
tar -xzf "${srcdir}/${_archivename}.tar.gz" -C "${pkgdir}/opt/${pkgname}/"
# We don't need these, as we use the shared system libraries
# We can't go this simple way on x86_64 currently, as arch doesn't provide lib32-qt5 :(
if [ "$CARCH" = "x86_64" ]; then
_purgelibs=('libopenal.so.1' 'libCgGL.so' 'libCg.so')
for i in "${_purgelibs[@]}"; do
rm "${pkgdir}/opt/${pkgname}/lib/${i}"
done
chown root:root "${pkgdir}/opt/${pkgname}/lib/"
else
rm -r "${pkgdir}/opt/${pkgname}/lib/"
fi
find "${pkgdir}/opt/${pkgname}/" -type f -exec chown root:root "{}" \;
install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
# I extracted this from the windows executable; couldn't find one anywhere else
install -D -m644 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
install -d "${pkgdir}/usr/bin/"
# We need this as the program expect to be launched from the same directory it resides in
cat > "${pkgdir}/usr/bin/${pkgname}" <<-EOF
#!/bin/bash
cd "/opt/${pkgname}/"
exec ./hotline_launcher
EOF
chmod 0755 "${pkgdir}/usr/bin/${pkgname}"
}

9
hotlinemiami.desktop Normal file
View file

@ -0,0 +1,9 @@
[Desktop Entry]
Encoding=UTF-8
Value=1.0
Type=Application
Name=Hotline Miami
Comment=A 2D top-down action video game
Icon=hotlinemiami.png
Exec=hotlinemiami
Categories=Game;

BIN
hotlinemiami.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 877 B