summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 00681253efd93e42d93c09859b7a1f7ca4f4cca7 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: taotieren <admin@taotieren.com>
# edrawmax 中文版

pkgname=edrawproject-cn
_pkgname=EdrawProj-3
pkgver=3.7.0
pkgrel=1
arch=('x86_64')
depends=(
    curl
    dbus
    e2fsprogs
    expat
    gcc-libs
    glib2
    glibc
    hicolor-icon-theme
    libssh2
    krb5
    zlib)
options=(!strip)
conflicts=("edrawproject")
pkgdesc="可用于甘特图绘制、项目计划、资源分配和预算管理。软件轻巧,功能强大!"
license=('Commercial')
url="https://www.edrawsoft.cn/edrawproject/"
source_x86_64=("${pkgname}_${pkgver}.deb::https://cc-download.wondershare.cc/prd/edrawproj_full5376.deb")
sha256sums_x86_64=('35e4c7b92eb863d22f9c29098286d43bc394b17b037819706108779550b26d66')

prepare() {
    #     ar -x *.deb
    mkdir -pv "$srcdir/$pkgname"
    tar -xf "$srcdir/data.tar.xz" --xattrs-include='*' --numeric-owner -C "$pkgname"
}
package() {
    #    export LC_CTYPE="zh_CN.UTF-8"
    cp -r ${srcdir}/${pkgname}/* ${pkgdir}

    install -dm755 "${pkgdir}/usr/bin/" \
        "${pkgdir}/usr/share/icons/"

    ln -sf "/opt/${_pkgname}/edrawproj.sh" "${pkgdir}/usr/bin/edrawproject"
    ln -sf "/opt/${_pkgname}/edrawproject.png" "${pkgdir}/usr/share/icons/edrawproject.png"
    rm -rf ${pkgdir}/usr/share/applications/.*

}