blob: 5a327b494a7f3de18084e2c9320cd1824ba7afc6 (
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
|
# Maintainer: Jack Chen <redchenjs@live.com>
# Maintainer: sukanka <su975853527 at gmail dot com>
_pkgname=BookxNotePro
pkgname=${_pkgname,,}-bin
pkgver=2.0.0.1112
pkgrel=1
pkgdesc="Electronic notebook"
arch=('x86_64')
url="http://www.bookxnote.com"
license=('unknown')
provides=("${_pkgname,,}")
depends=('qt5-base' 'qt5-speech')
makedepends=('patchelf')
source=("${url}/setup/BookxNotePro_ubuntu_amd64-${pkgver}.deb"
"${_pkgname}.sh"
)
sha512sums=('8c517f62384956147e8b4702ede5c3974988eae66c9f0529689b70ab0fb7b7c940ce5bf9a3f9a763aae773f2367491b38e6ae2bb299604ffe5cc4a6ab74b65d5'
'0b605046f657ddc9b3c566c022e702ca81bb5cc58aba3fd71d0ae73ce22af1cbc60fbaac6949a09b81fa6ee5f2a2818579a07798e2a92be2f03a1c0e52fcd924')
prepare() {
cd ${srcdir}
mkdir -p build
tar -xf data.tar.xz -C build
cd build/usr/share/applications
sed -i "s|^Exec=.*|Exec=${_pkgname} %u|g" ${_pkgname}.desktop
sed -i "s|^Icon=.*|Icon=${_pkgname}|g" ${_pkgname}.desktop
cd ${srcdir}/build/usr/local/${_pkgname}
chmod a+r lang/zh_cn.xml
patchelf --remove-rpath ${_pkgname}
}
package() {
cd ${srcdir}/build/usr
install -Dm644 share/applications/*.desktop -t ${pkgdir}/usr/share/applications/
install -Dm644 local/${_pkgname}/bxn_pro_logo.png ${pkgdir}/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png
install -d ${pkgdir}/usr/lib/${_pkgname}
cp -pvrf local/${_pkgname}/{lang,theme,${_pkgname}} ${pkgdir}/usr/lib/${_pkgname}
install -Dm755 ${srcdir}/${_pkgname}.sh ${pkgdir}/usr/bin/${_pkgname}
}
# vim: ts=2 sw=2 et:
|