diff options
author | zxp19821005 | 2023-07-04 16:56:44 +0800 |
---|---|---|
committer | zxp19821005 | 2023-07-04 16:56:44 +0800 |
commit | 2c923116141c3b677209cdc826e76856f289402b (patch) | |
tree | cecf3eb275a5ee9b4611eba651ee8dd7d35cd834 /PKGBUILD | |
download | aur-2c923116141c3b677209cdc826e76856f289402b.tar.gz |
first release
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..893ef40986c5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> +pkgname="chinesechesscontrol-bin" +_pkgname="ChineseChessControl" +_appname="org.Rabbit.${_pkgname%Control}" +pkgver=2.0.7 +pkgrel=1 +pkgdesc="中国象棋控件,包括中国象棋 MFC 扩展库,中国象棋 activex 控件 ,中国象棋Qt插件,人工智能引擎等" +arch=("x86_64") +url="https://github.com/KangLin/ChineseChessControl" +license=('GPL3') +depends=('openssl' 'sh' 'qt5-multimedia' 'gcc-libs' 'glibc' 'qt5-base' 'qt5-webengine') +conflicts=("${pkgname%-bin}" "${pkgname%-bin}-appimage") +source=("${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_v${pkgver}_Linux_${CARCH}_setup.deb") +sha256sums=('c10e639fcec2c078a9dff92c0d6cfe26c4185cf4aabb6e262e81d5e369350d6a') +package() { + bsdtar -xf "${srcdir}/data.tar.gz" -C "${pkgdir}" + install -Dm644 "${pkgdir}/opt/${_pkgname}/share/pixmaps/${_appname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png" + sed "s|${_appname}|${pkgname%-bin}|g" -i "${pkgdir}/opt/${_pkgname}/share/applications/${_appname}.desktop" + install -Dm644 "${pkgdir}/opt/${_pkgname}/share/applications/${_appname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop" +}
\ No newline at end of file |