aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 79468f8933a5bc1c991b22c3ed86608dad08aed5 (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.1910121
pkgrel=1
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=(
    'ec022787e71f239af7550459704cec1a'
)
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"
}