From d9308e46708cf22e8146626b6b5a58bd32ac608b Mon Sep 17 00:00:00 2001 From: Naglis Jonaitis Date: Fri, 28 Aug 2020 14:11:35 +0300 Subject: Initialize package --- .SRCINFO | 20 ++++++++++++++++++++ PKGBUILD | 30 ++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..c8334a1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = thorium-bin + pkgdesc = A cross platform desktop reading app, based on the Readium Desktop toolkit + pkgver = 1.4.0 + pkgrel = 1 + url = https://github.com/edrlab/thorium-reader + arch = x86_64 + license = BSD + depends = libnotify + depends = nss + depends = libxss + depends = xdg-utils + depends = libappindicator-gtk3 + depends = libsecret + source = https://github.com/edrlab/thorium-reader/releases/download/v1.4.0/EDRLab.ThoriumReader_1.4.0_amd64.deb + source = https://github.com/edrlab/thorium-reader/raw/v1.4.0/LICENSE + sha512sums = c3f7e9b7efccb35da4302a0ab8932d0ce77b2e2e8bebb7e1a910923def62deb193435603c0899505f8fc4c0437f085b0ecb24e3aea52451172c341b4d587fc2d + sha512sums = SKIP + +pkgname = thorium-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..daf40ff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Naglis Jonaitis + +pkgname=thorium-bin +pkgver=1.4.0 +pkgrel=1 +pkgdesc="A cross platform desktop reading app, based on the Readium Desktop toolkit" +arch=('x86_64') +license=('BSD') +url="https://github.com/edrlab/thorium-reader" +depends=('libnotify' 'nss' 'libxss' 'xdg-utils' 'libappindicator-gtk3' 'libsecret') +_filename=EDRLab.ThoriumReader_${pkgver}_amd64.deb +source=( + ${url}/releases/download/v${pkgver}/${_filename} + ${url}/raw/v${pkgver}/LICENSE +) +sha512sums=( + c3f7e9b7efccb35da4302a0ab8932d0ce77b2e2e8bebb7e1a910923def62deb193435603c0899505f8fc4c0437f085b0ecb24e3aea52451172c341b4d587fc2d + SKIP +) + +package() { + tar xJf ${srcdir}/data.tar.xz -C ${pkgdir}/ + + # Symlink + install -d "${pkgdir}/usr/bin" + ln -s "/opt/Thorium/thorium" "${pkgdir}/usr/bin/thorium" + + # Install license + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} -- cgit v1.2.3-70-g09d2