# Maintainer: Frederik Schwan # Contributor: John K. Luebs # Contributor: Simon Gomizelj # Contributor: Alfredo Palhares # Contributor: Douglas Meyer # Contributor: Tom Vincent # Contributor: Alexander pkgname=hipchat pkgver=4.30.5.1682 pkgrel=1 pkgdesc='Persistent group chat using XMPP' arch=('x86_64') url='https://www.hipchat.com/linux' license=('custom') depends=('fontconfig' 'libgl' 'libltdl' 'libxslt' 'hicolor-icon-theme' 'libxcomposite' 'libxcursor' 'libxkbcommon' 'libxrandr' 'libxslt' 'libxss' 'libpulse' 'xcb-util-keysyms' 'nss' 'openssl-1.0') source=("https://atlassian.artifactoryonline.com/artifactory/hipchat-apt-client/pool/HipChat4-${pkgver}-Linux.deb" license.html fix-seccomp-sandbox-bug.patch) sha512sums=('9e7032c3cf3a6a0a0e3af407f71ff0b32246c008105b174a0127e57ee68080d34e70f8eac9c994c29e9518c342d8a535c6eaff3fe2c6a627db9102ebd38bc6a4' '7e7d712a01edcb91fcd3759d77620ae53c5f24e6fc0ec311bec7eebf5736d643945c2600c9198261e47d0349ef358a6d673a446e15c7599c31b548c93f464f7d' '2c01bc2da7a0aa6bd1f943737949e3e84d56a1258f316e558c49e8474a86dec2c510eb5260f48ed0dbfd656801b73f69f4ea702a6f878f94e5e23bf12d67995f') prepare() { mkdir ${pkgname}-${pkgver} tar xzf data.tar.gz -C ${pkgname}-${pkgver} cd hipchat-* patch -p0 -i "${srcdir}"/fix-seccomp-sandbox-bug.patch } package() { install -Dm644 "${srcdir}"/license.html "${pkgdir}"/usr/share/licenses/${pkgname}/license.html cp -R ${pkgname}-${pkgver}/{opt,usr} "${pkgdir}" mkdir -p "${pkgdir}"/usr/bin ln -nsf /opt/HipChat4/bin/HipChat4 "${pkgdir}"/usr/bin/hipchat4 ln -nsf /usr/lib/libssl.so.1.0.0 "${pkgdir}"/opt/HipChat4/lib/ ln -nsf libssl.so.1.0.0 "${pkgdir}"/opt/HipChat4/lib/libssl.so ln -nsf /usr/lib/libcrypto.so.1.0.0 "${pkgdir}"/opt/HipChat4/lib/ ln -nsf libcrypto.so.1.0.0 "${pkgdir}"/opt/HipChat4/lib/libcrypto.so }