diff options
Diffstat (limited to 'thorium-reader-bin/PKGBUILD')
-rw-r--r-- | thorium-reader-bin/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/thorium-reader-bin/PKGBUILD b/thorium-reader-bin/PKGBUILD new file mode 100644 index 0000000..0cd54dd --- /dev/null +++ b/thorium-reader-bin/PKGBUILD | |||
@@ -0,0 +1,33 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | # Contributor: Naglis Jonaitis <[email protected]> | ||
3 | |||
4 | pkgname=thorium-reader-bin | ||
5 | pkgver=3.0.0 | ||
6 | pkgrel=2 | ||
7 | pkgdesc="A cross platform desktop reading app, based on the Readium Desktop toolkit" | ||
8 | arch=('x86_64') | ||
9 | license=(' BSD-3-Clause') | ||
10 | url="https://github.com/edrlab/thorium-reader" | ||
11 | depends=('libnotify' 'nss' 'libxss' 'xdg-utils' 'libappindicator-gtk3' 'libsecret') | ||
12 | _filename=EDRLab.ThoriumReader_${pkgver}_amd64.deb | ||
13 | options=('!strip') | ||
14 | source=( | ||
15 | "${pkgname}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${_filename}" | ||
16 | ${url}/raw/v${pkgver}/LICENSE | ||
17 | ) | ||
18 | sha512sums=('88057a075f2e96cab50078d2278ac047b4aa7fce704ed67c5bc6287f2e856864aceca4a9faa948ac3c333182dd9d28c1d72895955f10e55b37e54388a389cc18' | ||
19 | 'acb9c8cdd1225dd5e7874b5380cc597adf9cf32dfcebccfd18d13f36f525b56d9319734da28de5ec44a983197f91f2e80231211197b7201e4efe115972aae96a') | ||
20 | |||
21 | package() { | ||
22 | cd "${srcdir}" | ||
23 | tar xJf data.tar.xz -C "${pkgdir}" | ||
24 | |||
25 | # Symlink | ||
26 | install -d "${pkgdir}/usr/bin" | ||
27 | ln -s "/opt/Thorium/thorium" "${pkgdir}/usr/bin/thorium" | ||
28 | |||
29 | # Install license | ||
30 | install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | ||
31 | |||
32 | install -Dm 644 "${pkgdir}/usr/share/icons/hicolor/1024x1024/apps/thorium.png" "${pkgdir}/usr/share/pixmaps/thorium.png" | ||
33 | } | ||