Skip to content

Instantly share code, notes, and snippets.

@esiqveland
Last active September 20, 2015 21:09
Show Gist options
  • Save esiqveland/7c629161dc9f6574696d to your computer and use it in GitHub Desktop.
Save esiqveland/7c629161dc9f6574696d to your computer and use it in GitHub Desktop.
slack-chat aur PKGBUILD
# Maintainer: Simon Gomizelj <simongmzlj@gmail.com>
# Contributor: Kyle Manna <kyle(at)kylemanna(dot)com>
pkgname=slack-chat
pkgver=1.2.1
pkgrel=1
pkgdesc="Slack Chat (Beta) for Linux"
arch=('i686' 'x86_64')
url="https://slack.com"
license=('custom')
depends=('gconf' 'gtk2' 'libgcrypt' 'libnotify' 'libxtst' 'gvfs' 'xdg-utils' 'hunspell')
optdepends=('gnome-keyring')
source_x86_64=("https://slack-ssb-updates.global.ssl.fastly.net/linux_releases/slack-desktop-${pkgver}-amd64.deb")
source_i686=("https://slack-ssb-updates.global.ssl.fastly.net/linux_releases/slack-desktop-${pkgver}-i386.deb")
sha256sums_x86_64=('803b13a52ece821eba11d1b9d9acf0af079617e9e2c1408e3777ee65a301a4c6')
sha256sums_i686=('fc4dfe55233f3ba2506bd1f91170462bab4263bb5db3a8d3ee8449ca713d28da')
package() {
bsdtar -O -xf "slack-desktop-${pkgver}"*.deb data.tar.xz | bsdtar -C "$pkgdir" -xJf -
find "${pkgdir}" -type d -exec chmod 755 {} +
# Strip cruft -- why are these shipped in Linux packages? Consumes 60MB+
rm -rf "${pkgdir}/usr/share/slack/resources/app.asar.unpacked/static/plugins/darwin"
rm -rf "${pkgdir}/usr/share/slack/resources/app.asar.unpacked/static/plugins/win32"
find "${pkgdir}" -type f -iname \*.dll -delete
find "${pkgdir}" -type f -iname \*.exe -delete
# The cron.daily script is toxic... manipulating keys and sources
# list on debian. These don't even work on Arch. Someday a proper
# systemd.timer service will exist if necessary.
rm -rf "${pkgdir}/etc/cron.daily"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment