From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- thorium-bin/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 thorium-bin/PKGBUILD (limited to 'thorium-bin/PKGBUILD') diff --git a/thorium-bin/PKGBUILD b/thorium-bin/PKGBUILD new file mode 100644 index 0000000..fdb25a6 --- /dev/null +++ b/thorium-bin/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Yigit Sever +# Contributor: Naglis Jonaitis + +pkgname=thorium-bin +pkgver=1.7.3 +pkgrel=1 +pkgdesc="A cross platform desktop reading app, based on the Readium Desktop toolkit" +arch=('x86_64') +license=('BSD3') +url="https://github.com/edrlab/thorium-reader" +depends=('libnotify' 'nss' 'libxss' 'xdg-utils' 'libappindicator-gtk3' 'libsecret') +_filename=EDRLab.ThoriumReader_${pkgver}_amd64.deb +options=('!strip') +source=( + "${pkgname}.tar.gz::${url}/releases/download/v${pkgver}/${_filename}" + ${url}/raw/v${pkgver}/LICENSE +) +sha512sums=('ca572e2455546a36eaec5a35c16f0067f2c728e92d2236ebb2780ffc46219c87d2164ee332c38e7fb5d619ff56d3b41d389a8c73a9d8de2e1f33c4970e0b5ba4' + 'acb9c8cdd1225dd5e7874b5380cc597adf9cf32dfcebccfd18d13f36f525b56d9319734da28de5ec44a983197f91f2e80231211197b7201e4efe115972aae96a') + +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" + + # Fix "no icon" issue (see also https://github.com/edrlab/thorium-reader/issues/1241) + mv ${pkgdir}/usr/share/icons/hicolor/0x0 ${pkgdir}/usr/share/icons/hicolor/1024x1024 + install -Dm 644 "${pkgdir}/usr/share/icons/hicolor/1024x1024/apps/thorium.png" "${pkgdir}/usr/share/pixmaps/thorium.png" +} -- cgit v1.2.3-70-g09d2