summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3553ce9a82e61a7a940b4205fadfdc7c3b5e3813 (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
30
# Maintainer: zhullyb <zhullyb [at] outlook [dot] com>
pkgname=wechat-devtools-bin
pkgver=1.06.2409140_2
pkgrel=1
epoch=2
pkgdesc="WeChat Devtools For Linux."
license=("MIT")
arch=("x86_64")
url="https://github.com/msojocs/wechat-web-devtools-linux"
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
depends=("gconf" "libxkbfile")
options=("!strip")
source=(
    "https://github.com/msojocs/wechat-web-devtools-linux/releases/download/v${pkgver//_/-}/WeChat_Dev_Tools_v${pkgver//_/-}_x86_64_linux.tar.gz"
    "wechat-devtools.desktop"
    "wechat-devtools.svg"
)
md5sums=('351fccceafeff1547a1aa77039aebfc6'
         '08b27001217b9732289cd0e33f8f8d58'
         '945fac0a68c298b66f3808f2f1694c98')

package() {
    mkdir -p ${pkgdir}/opt/wechat-devtools ${pkgdir}/usr/bin
    cp -r ${srcdir}/WeChat_Dev_Tools_v${pkgver//_/-}_x86_64_linux/* ${pkgdir}/opt/wechat-devtools
    ln -s /opt/wechat-devtools/bin/* ${pkgdir}/usr/bin/

    install -Dm644 ${srcdir}/wechat-devtools.desktop ${pkgdir}/usr/share/applications/wechat-devtools.desktop
    install -Dm644 ${srcdir}/wechat-devtools.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/wechat-devtools.svg
}