blob: 190adc9285dd62b96fb7c0a5fc429d8a7a5273b9 (
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
|
pkgname=qolibri-bin
conflicts=(qolibri)
pkgver=2.1.4
pkgrel=4
pkgdesc="A QT-based EPWING dictionary viewer"
url="https://github.com/ludios/qolibri/"
arch=('x86_64' 'i686')
license=('GPL2')
depends=('libnsl' 'qt5-base' 'qt5-tools' 'qt5-multimedia' 'qt5-webengine' 'zlib' 'libeb')
makedepends=('libarchive')
source=("https://github.com/ludios/qolibri/releases/download/${pkgver}/qolibri_${pkgver}_amd64.deb")
sha1sums=('9c2d723bed6ac53fa5ab9f55f0ca9ee21d7a65d3')
package() {
mkdir -p \
"$pkgdir/usr/share/applications" \
"$pkgdir/usr/lib/" \
"$pkgdir/usr/share/icons/hicolor/128x128/apps/"
bsdtar -xf data.tar.xz -C "$pkgdir"
ln -s /usr/lib/libnsl.so "$pkgdir/usr/lib/libnsl.so.2"
curl \
"https://raw.githubusercontent.com/ludios/qolibri/prime/images/qolibri-128.png" \
-o "$pkgdir/usr/share/icons/hicolor/128x128/apps/qolibri.png"
cat <<-EOF > "$pkgdir/usr/share/applications/qolibri.desktop"
[Desktop Entry]
Name=qolibri
Comment=A QT-based EPWING dictionary viewer
GenericName=dictionary
Exec=qolibri
Icon=qolibri
Categories=Education;Languages;Qt;
Terminal=false
Type=Application
Version=1.0
EOF
}
|