blob: b50b23774e768e7af89600e41a82fcc7fdae10b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Nixuge
pkgname=reddit-desktop-bin
pkgver=1.0.172
pkgrel=1
pkgdesc='Reddit Desktop is a desktop client for reddit.'
url=https://github.com/sgiurgiu/reddit_desktop
arch=(x86_64)
license=(GNU)
depends=(mpv)
conflicts=('reddit-desktop')
provides=('reddit-desktop')
source=("https://github.com/sgiurgiu/reddit_desktop/releases/download/${pkgver}/reddit_desktop-${pkgver}-debian.deb")
sha256sums=('cc89872ff4aa8eaf4c363cffc05bafdc59200d4209a65ec0a1110ef98b66bc14')
package() {
bsdtar -xf data.tar.gz -C "$pkgdir/"
# The executable really only wants libmpv.so.1 (instead of the libmpv.so.2 provided by MPV)
# so for now just symlinking it as it still works either way
# Note that this should be fixed asap
# ===== symlink to /usr/lib, dirties the path a bit but works when launching from the terminal
# (went with that one)
install -dm755 "${pkgdir}/usr/lib"
ln -sn /usr/lib/libmpv.so.2 ${pkgdir}/usr/lib/libmpv.so.1
# ===== symlink to /usr/local/lib, cleaner but only works from the .desktop
# install -dm755 "${pkgdir}/usr/local/lib"
# ln -sn /usr/lib/libmpv.so.2 ${pkgdir}/usr/local/lib/libmpv.so.1
# sed -i 's|Exec=/usr/bin/reddit_desktop|Exec=env LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH /usr/bin/reddit_desktop|g' \
# ${pkgdir}/usr/share/applications/reddit-desktop.desktop
}
|