summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50ce5b8f9ca249349ccec6f13f8dc0c13f8ab1a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Jack Wu (OriginCode) <self@origincode.me>

pkgname=linuxqq
pkgver=2.0.0_b2_1084
pkgrel=1
arch=('x86_64')
pkgdesc="Tencent QQ for Linux"
url="https://im.qq.com/linuxqq"
depends=('gtk2' 'glibc' 'gcc-libs' 'nss')
license=('custom')
source=(
    "$pkgname-${pkgver}_orig_x86_64.pkg.tar.xz::https://down.qq.com/qqweb/LinuxQQ/linuxqq_2.0.0-b2-1084_x86_64.pkg.tar.xz"
    "qq.desktop"
)
sha512sums=('7bccbb2caf1f072ae7345d5b66c702e705439068bebfacf2093a135b2c93058e89b5c3bf8ef2e68bc179ea75805cd10f065729729db6d0acca7ee96b501ba027'
            'a6118c6a2dc03d22b423d4bca393c6a2ef0c8494f6480db0ee1b29ca28485e3a5e648d9485595d2d4c921d1688f72c70a70949c241b2fdde6d43bd0053cdcaa2')
replaces=('qq-linux')

package() {
    mkdir -p "$pkgdir/opt/tencent-qq"
    cp -pr "$srcdir/usr/local/bin/"* "$pkgdir/opt/tencent-qq/"
    cp -pr "$srcdir/usr/local/share/tencent-qq/"* "$pkgdir/opt/tencent-qq/"

    mkdir -p "$pkgdir/usr/bin"
    ln -s ../../opt/tencent-qq/qq "$pkgdir/usr/bin/qq"
    
    install -Dm644 "$pkgdir/opt/tencent-qq/qq.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/qq.png"
    install -Dm644 "$srcdir/qq.desktop" "$pkgdir/usr/share/applications/qq.desktop"
}