blob: fca46402a74a6f94e8191be3b00cb91e2a27731c (
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: kausban <mail at kausban com>
pkgname=polar-bookshelf-bin
pkgver=1.0.3
pkgrel=1
pkgdesc="Polar Bookshelf"
arch=('x86_64')
url="https://github.com/burtonator/polar-bookshelf"
license=('GPL3')
depends=('gtk3' 'libxss' 'nss')
source_x86_64=("https://github.com/burtonator/polar-bookshelf/releases/download/v"$pkgver"/polar-bookshelf-"$pkgver"-x64.tar.gz"
"polar-bookshelf.desktop")
sha512sums_x86_64=('8b0e60d856f45bd87d9f6ac597a98cd2a4cf8555e18eff1231d6c9e6d647958abeac4aa577fda9e67260a5973c3bd1ed41a85b4bb9fc89d381305bda692401ea'
'245196d23eb0c724bba1ba09e8234cc8dfdd230fcd02e8083c84d65d4721886977a111e19511d5afee9b8b61458ab851e6263dad31be9bbe0f4f5a3607f00690')
package(){
# place files
install -d "${pkgdir}/usr/lib/polar-bookshelf"
cp -a ${srcdir}/polar-bookshelf-"$pkgver"-x64/* "${pkgdir}/usr/lib/polar-bookshelf"
# symlink main binary
install -d "${pkgdir}/usr/bin"
ln -s "/usr/lib/polar-bookshelf/polar-bookshelf" "${pkgdir}/usr/bin/polar-bookshelf"
# desktop entry and icons
desktop-file-install -m 644 --dir "${pkgdir}/usr/share/applications/" "${srcdir}/polar-bookshelf.desktop"
# Place license files
for license in "LICENSE.electron.txt" "LICENSES.chromium.html"; do
install -Dm644 "${pkgdir}/usr/lib/polar-bookshelf/${license}" "${pkgdir}/usr/share/licenses/polar-bookshelf/${license}"
rm "${pkgdir}/usr/lib/polar-bookshelf/${license}"
done
}
|