Skip to content

Instantly share code, notes, and snippets.

@KaiSforza
Created September 4, 2012 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaiSforza/3619480 to your computer and use it in GitHub Desktop.
Save KaiSforza/3619480 to your computer and use it in GitHub Desktop.
katawa shoujo pkgbuild
# Maintainer: Anton Larionov <diffident dot cat at gmail dot com>
# Updated by: KaiSforza <1007380@gmail.com>
# The old pkgbuild was architecture-dependent (only worked on i686 or x86_64. This has been re-written to check for the hosts architecture and use that in deciding the dependencies. If there are issues, please email me at 1007380@gmail.com.
pkgname=katawa-shoujo
pkgver=1.0
pkgrel=7
conflicts=('katawa-shoujo')
pkgdesc="Bishoujo-style visual novel game that tells a story of a young man and five other girls suffering with varying disabilities"
case $CARCH in
i686) depends=('python');;
x86_64)depends=('lib32-zlib' 'python');;
esac
case $CARCH in
i686) optdepends=("pulseaudio: for audio support");;
x86_64) optdepends=('lib32-alsa-plugins'
'lib32-libpulse');;
esac
arch=('i686' 'x86_64')
url='http://katawa-shoujo.com/'
license=('CCPL:by-nc-nd' 'MIT')
install="${pkgname}.install"
###################################################################
# Note to users:
# If you don't want to use the third-party download site provided,
# read on. Otherwise, you're good and don't worry about this next bit.
#
# Four Leaf Studios only offers katawa shoujo as a torrent download.
# This torrent can be downloaded from
# http://dl.katawa-shoujo.com/gold/[4ls]_katawa_shoujo_[linux-x86][EA1DFB30].tar.bz2.torrent
# and placed in this folder.
###################################################################
source=("[4ls]_katawa_shoujo_[linux-x86][EA1DFB30].tar.bz2::http://naodesu.org/files/katawa-shoujo/\[4ls\]_katawa_shoujo_\[linux-x86\]\[EA1DFB30\].tar.bz2"
"${pkgname}.sh"
"${pkgname}.desktop"
"${pkgname}.png")
md5sums=('fc4a4496e9ed44494f74ca55648b0531'
'ef94322df8f68b28fb72e858cf5da9da'
'52da5f2a8365a9b88d65fad1301e439b'
'1584e91ffa16e4a83db1eeae5fdd7bbc')
build() {
# copy main files
cd "${srcdir}/Katawa Shoujo-linux-x86/"
install -dm755 "${pkgdir}/usr/share/${pkgname}"
cp -r common game lib renpy "${pkgdir}/usr/share/${pkgname}"
install -m644 'Katawa Shoujo.py' "${pkgdir}/usr/share/${pkgname}"
install -m755 'Katawa Shoujo.sh' "${pkgdir}/usr/share/${pkgname}"
# copy game manual
install -D -m644 'Game Manual.pdf' "${pkgdir}/usr/share/doc/${pkgname}/gamemanual.pdf"
# copy license
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# copy bash script
install -D -m755 "${srcdir}/katawa-shoujo.sh" "${pkgdir}/usr/bin/${pkgname}"
# install desktop entry file
install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -D -m644 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment