diff options
author | Naglis Jonaitis | 2020-08-28 14:11:35 +0300 |
---|---|---|
committer | Naglis Jonaitis | 2020-08-28 14:11:35 +0300 |
commit | d9308e46708cf22e8146626b6b5a58bd32ac608b (patch) | |
tree | 4e7097f48024e9c07e8a82be7bd91bfc5348f6b8 | |
download | packages-d9308e46708cf22e8146626b6b5a58bd32ac608b.tar.gz packages-d9308e46708cf22e8146626b6b5a58bd32ac608b.tar.bz2 packages-d9308e46708cf22e8146626b6b5a58bd32ac608b.zip |
Initialize package
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..c8334a1 --- /dev/null +++ b/.SRCINFO | |||
@@ -0,0 +1,20 @@ | |||
1 | pkgbase = thorium-bin | ||
2 | pkgdesc = A cross platform desktop reading app, based on the Readium Desktop toolkit | ||
3 | pkgver = 1.4.0 | ||
4 | pkgrel = 1 | ||
5 | url = https://github.com/edrlab/thorium-reader | ||
6 | arch = x86_64 | ||
7 | license = BSD | ||
8 | depends = libnotify | ||
9 | depends = nss | ||
10 | depends = libxss | ||
11 | depends = xdg-utils | ||
12 | depends = libappindicator-gtk3 | ||
13 | depends = libsecret | ||
14 | source = https://github.com/edrlab/thorium-reader/releases/download/v1.4.0/EDRLab.ThoriumReader_1.4.0_amd64.deb | ||
15 | source = https://github.com/edrlab/thorium-reader/raw/v1.4.0/LICENSE | ||
16 | sha512sums = c3f7e9b7efccb35da4302a0ab8932d0ce77b2e2e8bebb7e1a910923def62deb193435603c0899505f8fc4c0437f085b0ecb24e3aea52451172c341b4d587fc2d | ||
17 | sha512sums = SKIP | ||
18 | |||
19 | pkgname = thorium-bin | ||
20 | |||
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..daf40ff --- /dev/null +++ b/PKGBUILD | |||
@@ -0,0 +1,30 @@ | |||
1 | # Maintainer: Naglis Jonaitis <naglis@mailbox.org> | ||
2 | |||
3 | pkgname=thorium-bin | ||
4 | pkgver=1.4.0 | ||
5 | pkgrel=1 | ||
6 | pkgdesc="A cross platform desktop reading app, based on the Readium Desktop toolkit" | ||
7 | arch=('x86_64') | ||
8 | license=('BSD') | ||
9 | url="https://github.com/edrlab/thorium-reader" | ||
10 | depends=('libnotify' 'nss' 'libxss' 'xdg-utils' 'libappindicator-gtk3' 'libsecret') | ||
11 | _filename=EDRLab.ThoriumReader_${pkgver}_amd64.deb | ||
12 | source=( | ||
13 | ${url}/releases/download/v${pkgver}/${_filename} | ||
14 | ${url}/raw/v${pkgver}/LICENSE | ||
15 | ) | ||
16 | sha512sums=( | ||
17 | c3f7e9b7efccb35da4302a0ab8932d0ce77b2e2e8bebb7e1a910923def62deb193435603c0899505f8fc4c0437f085b0ecb24e3aea52451172c341b4d587fc2d | ||
18 | SKIP | ||
19 | ) | ||
20 | |||
21 | package() { | ||
22 | tar xJf ${srcdir}/data.tar.xz -C ${pkgdir}/ | ||
23 | |||
24 | # Symlink | ||
25 | install -d "${pkgdir}/usr/bin" | ||
26 | ln -s "/opt/Thorium/thorium" "${pkgdir}/usr/bin/thorium" | ||
27 | |||
28 | # Install license | ||
29 | install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | ||
30 | } | ||