# Maintainer: Rhinoceros # Contributor: Limao Luo # Contributor: Marek Otahal # Contributor: Gen2ly pkgname=machinarium pkgver=3 pkgrel=14 pkgdesc="A point-and-click logic adventure game by the creators of Samorost (requires copy of the full game)" arch=(i686 x86_64) url=http://machinarium.net/ license=(unknown) depends_i686=(desktop-file-utils hicolor-icon-theme) depends_i686=(alsa-lib bzip2 curl gtk2 libxdamage libxt nss) depends_x86_64=(lib32-alsa-lib lib32-bzip2 lib32-curl lib32-gtk2 lib32-libxdamage lib32-libxt lib32-nss) install=$pkgname.install 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') PKGEXT='.pkg.tar' source=(hib://Machinarium_full_en.tar.gz $pkgname.sh $pkgname.desktop https://orig00.deviantart.net/b304/f/2009/298/f/8/machinarium_dock_icon_by_darkhavans.png) # Icon from https://darkhavans.deviantart.com/art/Machinarium-Dock-Icon-141463511 . No licence specified on page. sha1sums=('b0cd45fa1d75b29a9cb761f96ef398cec29d8c12' 'e78be4e1e9752586188dce39e24da457711ee5b3' '1febb90a558e55cb42531cac96bfb3d07698fef8' '526b57155682e27abb965b55cfc92aeb0e5a5aa9') package() { install -dm644 "$pkgdir"/usr/share/games/$pkgname # Install swf file as per https://bbs.archlinux.org/viewtopic.php?pid=1079661#p1079661 dd if=Machinarium/Machinarium of="$pkgdir"/usr/share/games/$pkgname/$pkgname-browser.swf ibs=1 skip=$(grep -abo FWS Machinarium/Machinarium|cut -f1 -d:|tail -1) install -Dm755 $pkgname.sh "$pkgdir"/usr/bin/$pkgname install -Dm644 machinarium_dock_icon_by_darkhavans.png "$pkgdir"/usr/share/icons/$pkgname.png desktop-file-install $pkgname.desktop --dir "$pkgdir"/usr/share/applications/ cp -r Machinarium/* "$pkgdir"/usr/share/games/$pkgname/ cd "$pkgdir"/usr/share/games/$pkgname/ find -type d -exec chmod 755 {} \; find -type f -exec chmod 644 {} \; chmod 755 Machinarium }