summaryrefslogtreecommitdiffstats
path: root/thorium-bin
diff options
context:
space:
mode:
Diffstat (limited to 'thorium-bin')
-rw-r--r--thorium-bin/.SRCINFO20
-rw-r--r--thorium-bin/.gitignore4
-rw-r--r--thorium-bin/PKGBUILD33
3 files changed, 57 insertions, 0 deletions
diff --git a/thorium-bin/.SRCINFO b/thorium-bin/.SRCINFO
new file mode 100644
index 0000000..62c7e9c
--- /dev/null
+++ b/thorium-bin/.SRCINFO
@@ -0,0 +1,20 @@
1pkgbase = thorium-bin
2 pkgdesc = A cross platform desktop reading app, based on the Readium Desktop toolkit
3 pkgver = 2.3.0
4 pkgrel = 2
5 url = https://github.com/edrlab/thorium-reader
6 arch = x86_64
7 license = BSD3
8 depends = libnotify
9 depends = nss
10 depends = libxss
11 depends = xdg-utils
12 depends = libappindicator-gtk3
13 depends = libsecret
14 options = !strip
15 source = thorium-bin-2.3.0.deb::https://github.com/edrlab/thorium-reader/releases/download/v2.3.0/EDRLab.ThoriumReader_2.3.0_amd64.deb
16 source = https://github.com/edrlab/thorium-reader/raw/v2.3.0/LICENSE
17 sha512sums = ffa7606d6d0e2e8ef44a2ab7106a593e076936123a386195718afefb01b2eb328b89b10f116637b4cb3412d88a2082e1a368f0007ad1a5da857132b6e046541f
18 sha512sums = acb9c8cdd1225dd5e7874b5380cc597adf9cf32dfcebccfd18d13f36f525b56d9319734da28de5ec44a983197f91f2e80231211197b7201e4efe115972aae96a
19
20pkgname = thorium-bin
diff --git a/thorium-bin/.gitignore b/thorium-bin/.gitignore
new file mode 100644
index 0000000..05c6d4d
--- /dev/null
+++ b/thorium-bin/.gitignore
@@ -0,0 +1,4 @@
1*
2!.gitignore
3!.SRCINFO
4!PKGBUILD
diff --git a/thorium-bin/PKGBUILD b/thorium-bin/PKGBUILD
new file mode 100644
index 0000000..6e718d3
--- /dev/null
+++ b/thorium-bin/PKGBUILD
@@ -0,0 +1,33 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2# Contributor: Naglis Jonaitis <naglis@mailbox.org>
3
4pkgname=thorium-bin
5pkgver=2.3.0
6pkgrel=2
7pkgdesc="A cross platform desktop reading app, based on the Readium Desktop toolkit"
8arch=('x86_64')
9license=('BSD3')
10url="https://github.com/edrlab/thorium-reader"
11depends=('libnotify' 'nss' 'libxss' 'xdg-utils' 'libappindicator-gtk3' 'libsecret')
12_filename=EDRLab.ThoriumReader_${pkgver}_amd64.deb
13options=('!strip')
14source=(
15 "${pkgname}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${_filename}"
16 ${url}/raw/v${pkgver}/LICENSE
17)
18sha512sums=('ffa7606d6d0e2e8ef44a2ab7106a593e076936123a386195718afefb01b2eb328b89b10f116637b4cb3412d88a2082e1a368f0007ad1a5da857132b6e046541f'
19 'acb9c8cdd1225dd5e7874b5380cc597adf9cf32dfcebccfd18d13f36f525b56d9319734da28de5ec44a983197f91f2e80231211197b7201e4efe115972aae96a')
20
21package() {
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}