summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57e7944e8a0d862bbdbd60381633b644010d5f5f (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
31
32
# Maintainer: levinit <levinit at outlook>

pkgname=iceworks
pkgver=2.6.0
pkgrel=1
pkgdesc="icework make front-end engineering becomes easy and convenient.飞冰,让前端工程变得轻松便捷。"
arch=('x86_64')
url="https://alibaba.github.io/ice/iceworks"
license=('MIT')
depends=()

source=("https://iceworks.oss-cn-hangzhou.aliyuncs.com/linux/Iceworks-amd64-${pkgver}-beta.deb")
        
md5sums=('SKIP')

package() {
    tar -xvf data.tar.xz -C ${pkgdir}

    #edit app's desktop file
    sed -i '/Comment/d'  ${pkgdir}/usr/share/applications/iceworks-desktop.desktop
    echo -e '
Name[zh_CN]=飞冰
Name[zh_TW]=飛冰
Name[zh_HK]=飛冰
Comment=icework make front-end engineering becomes easy and convenient
Comment[zh_CN]=飞冰 让前端工程变得轻松便捷
Comment[zh_TW]=飛冰 讓前端工程變得輕鬆便捷
Comment[zh_HK]=飛冰 讓前端工程變得輕鬆便捷' >> ${pkgdir}/usr/share/applications/iceworks-desktop.desktop

    chmod -R go-w "${pkgdir}"/usr
    install -dm755 "${pkgdir}/usr/bin"
}