diff options
author | Vojtech Kral | 2015-06-22 13:12:48 +0200 |
---|---|---|
committer | Vojtech Kral | 2015-06-22 13:12:48 +0200 |
commit | 6bbe95da60d7404183f549b779f7b290e402cef7 (patch) | |
tree | a9a9d6edc66da08a8148735da465ae1aaf69fb1b /PKGBUILD | |
download | aur-samorost2.tar.gz |
Initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6c415467dc7a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Vojtech Kral <vojtech_kral^hk> + +pkgname=samorost2 +pkgver=1.0 +pkgrel=6 +pkgdesc="Samorost 2 is an award-winning point-and-click adventure/puzzle Flash game by Amanita Design" +arch=('i686' 'x86_64') +url="http://amanita-design.net/samorost-2/" +license=('unknown') +depends=('xdg-utils' 'flashplugin') +install=install + +source=(samorost2 + samorost2.desktop) + +sha256sums=('594dc311057d005bcc0d2b9989c0f095ed8f57c75d9003cc52978d2eb7c87829' + '7af55922b26b62704645dc928464444361754e4f6e7e348e6ba55efb997be2af') + +_distname='samorost2_linux.zip' +_distsum='1e6304b203cbe05e2e7d85b2f062142decb70084ebd7cfbee4475d91a048aad6' + +package() +{ + cd .. + if [ ! -f "${_distname}" ] + then + echo "${_distname} needs to be supplied by the user. Please place it in the directory alongside the PKGBUILD file." + exit 1 + fi + echo "${_distsum} ${_distname}" | sha256sum -c || exit 1 + mkdir -p ${pkgdir}/usr/share/samorost2 + bsdtar -xf samorost2_linux.zip -C ${pkgdir}/usr/share/samorost2/ + find ${pkgdir}/usr/share/samorost2/ -type d -exec chmod 755 '{}' \; + find ${pkgdir}/usr/share/samorost2/ -type f -exec chmod 644 '{}' \; + cd "${srcdir}" + install -D -m755 'samorost2' ${pkgdir}/usr/bin/samorost2 + desktop-file-install --dir=${pkgdir}/usr/share/applications/ 'samorost2.desktop' +} |