Created
September 1, 2017 08:46
-
-
Save anonymous/9d3d889ab1edafb56910a7b91780b746 to your computer and use it in GitHub Desktop.
Updated PKGBUILD for slack-desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me) | |
# Contributor: Simon Gomizelj <simongmzlj(at)gmail(dot)com> | |
# Contributor: Kyle Manna <kyle(at)kylemanna(dot)com> | |
pkgname=slack-desktop | |
pkgver=2.7.1 | |
pkgrel=2 | |
pkgdesc="Slack Desktop (Beta) for Linux" | |
arch=('x86_64') | |
url="https://slack.com/downloads" | |
license=('custom') | |
depends=('alsa-lib' 'expat' 'gconf' 'gtk2' 'hunspell' 'hunspell-en' 'libcurl-compat' 'libgcrypt' | |
'libnotify' 'libxss' 'libxtst' 'xdg-utils' 'libsecret' 'nss' 'libxkbfile') | |
optdepends=('gnome-keyring') | |
source=("https://downloads.slack-edge.com/linux_releases/${pkgname}-${pkgver}-amd64.deb" | |
"${pkgname}.patch") | |
sha256sums=('daf046ce1c40e2d514b449055334785d51ccf45009931d7e8ad15190e93041d9' | |
'5eceb99baa2e248ea8b2785a582de2e6b876e9bf820e818f92c3ae3827ee5fed') | |
package() { | |
bsdtar -O -xf "slack-desktop-${pkgver}"*.deb data.tar.xz | bsdtar -C "${pkgdir}" -xJf - | |
# Fix hardcoded icon path in .desktop file | |
patch -d "${pkgdir}" -p1 <${pkgname}.patch | |
# Permission fix | |
find "${pkgdir}" -type d -exec chmod 755 {} + | |
# Remove all unnecessary stuff | |
rm -rf "${pkgdir}/etc" | |
rm -rf "${pkgdir}/usr/share/lintian" | |
rm -rf "${pkgdir}/usr/share/doc" | |
# Move license | |
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}" | |
mv "${pkgdir}/usr/lib/slack/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}" | |
ln -s /usr/share/licenses/${pkgname}/LICENSE "${pkgdir}/usr/lib/slack/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment