summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32b0f4c46656487dfba3b13a8ffeac9415d00b0d (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
# Maintainer: Razon Yang <razonyang@gmail.com>
pkgname=wechat-devtool
pkgver=1.02.1907300
pkgrel=2
pkgdesc=微信开发者工具
url=https://github.com/razonyang/archlinux-wechat-devtool
license=('MIT')
arch=('any')
depends=(
    'wine'
)
source=(
    "https://github.com/cytle/wechat_web_devtools/archive/v$pkgver.tar.gz"
)
md5sums=(
    '9a50b8f4e5055480dfaf6ac6de33e964'
)
package() {
    # copy files to /opt
    mkdir -p "$pkgdir/opt"
    cp -r "$srcdir/wechat_web_devtools-$pkgver" "$pkgdir/opt/$pkgname"
    "$pkgdir/opt/$pkgname/bin/wxdt" install
    
    # desktop entry
    mkdir -p "$pkgdir/usr/share/applications"
    sed "s/path\/to/opt\/$pkgname/g" "$pkgdir/opt/$pkgname/desktop.example" > "$pkgdir/usr/share/applications/$pkgname.desktop"
}