diff options
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | PKGBUILD | 55 | ||||
-rw-r--r-- | extras.tar.gz | bin | 0 -> 116241 bytes | |||
-rw-r--r-- | itch.install | 12 |
4 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..755cdd471ffc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = itch-bin + pkgdesc = The best way to play itch.io games. + pkgver = 23.6.2 + pkgrel = 1 + url = https://github.com/itchio/itch + install = itch.install + arch = i686 + arch = x86_64 + license = MIT + depends = alsa-lib + depends = libnotify + depends = nss + depends = gconf + depends = gtk2 + depends = libxtst + depends = desktop-file-utils + depends = gtk-update-icon-cache + depends = libxss + provides = itch + conflicts = itch + options = !strip + source = https://github.com/itchio/itch/releases/download/v23.6.2/itch-23.6.2-amd64.tar.xz + sha256sums = a9faa0fda73d7935b52ec829dccc3e523066f9e6d072232e7cd813e062c015b3 + +pkgname = itch-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..39859eb741cf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Amos Wenger <amos@itch.io> +# Contributor: FrozenCow <frozencow@gmail.com> + +pkgname=itch-bin +pkgver=23.6.2 +pkgrel=1 +pkgdesc="The best way to play itch.io games." + +arch=('i686' 'x86_64') +url="https://github.com/itchio/itch" +license=('MIT') + +depends=('alsa-lib' 'libnotify' 'nss' 'gconf' 'gtk2' 'libxtst' 'desktop-file-utils' 'gtk-update-icon-cache' 'libxss') +makedepends=() +options=('!strip') +provides=('itch') +conflicts=('itch') +install="itch.install" + +[ "$CARCH" = "i686" ] && _ELECTRON_ARCH=ia32; _ITCH_ARCH=i386 +[ "$CARCH" = "x86_64" ] && _ELECTRON_ARCH=x64; _ITCH_ARCH=amd64 + +# sic. - source is in itch repo, kitch is a dummy repo for canary-channel github releases +source=("https://github.com/itchio/itch/releases/download/v${pkgver}/itch-${pkgver}-${_ITCH_ARCH}.tar.xz") +sha256sums=('a9faa0fda73d7935b52ec829dccc3e523066f9e6d072232e7cd813e062c015b3') + +prepare() { + basedir=`cd .. && pwd`; + tar xf "${basedir}/extras.tar.gz" +} + +package() { + tar xf itch-${pkgver}-${_ITCH_ARCH}.tar.xz + cd "${srcdir}/itch-${pkgver}-${_ITCH_ARCH}" + + install -d "${pkgdir}/usr/lib/itch" + cp -a "${srcdir}/itch-${pkgver}-${_ITCH_ARCH}/." "${pkgdir}/usr/lib/itch" + + install -d "${pkgdir}/usr/share/applications" + install -Dm644 "${srcdir}/extras/io.itch.itch.desktop" "${pkgdir}/usr/share/applications/itch.desktop" + + for icon in ${srcdir}/extras/icon*.png + do + iconsize="${icon#release/images/itch-icons/icon}" + iconsize="${iconsize%.png}" + icondir="${pkgdir}/usr/share/icons/hicolor/${iconsize}x${iconsize}/apps/" + install -d "${icondir}" + install -Dm644 "$icon" "$icondir/itch.png" + done + + install -D -m644 "${srcdir}/extras/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + mkdir -p "${pkgdir}/usr/bin" + ln -s "/usr/lib/itch/itch" "${pkgdir}/usr/bin/itch" +} diff --git a/extras.tar.gz b/extras.tar.gz Binary files differnew file mode 100644 index 000000000000..a4d457df3a10 --- /dev/null +++ b/extras.tar.gz diff --git a/itch.install b/itch.install new file mode 100644 index 000000000000..c317fbaca442 --- /dev/null +++ b/itch.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |