diff options
author | Stephan Springer | 2020-05-22 16:08:18 +0200 |
---|---|---|
committer | Stephan Springer | 2020-05-22 16:11:02 +0200 |
commit | f2745e4b2d87aee516231ff6529431429ae33078 (patch) | |
tree | 6c0877f16c61ef4eb82df2b17b4640561f6a917b | |
parent | 3900361c6d7f4642b2f3bd375d9990d822107478 (diff) | |
download | packages-f2745e4b2d87aee516231ff6529431429ae33078.tar.gz packages-f2745e4b2d87aee516231ff6529431429ae33078.tar.bz2 packages-f2745e4b2d87aee516231ff6529431429ae33078.zip |
install libs in /usr/share/popcorntime/lib instead of /usr/lib/popcorntime
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 4 insertions, 12 deletions
@@ -1,7 +1,7 @@ | |||
1 | pkgbase = popcorntime-bin | 1 | pkgbase = popcorntime-bin |
2 | pkgdesc = Stream free movies and TV shows from torrents | 2 | pkgdesc = Stream free movies and TV shows from torrents |
3 | pkgver = 0.4.4 | 3 | pkgver = 0.4.4 |
4 | pkgrel = 1 | 4 | pkgrel = 2 |
5 | url = https://popcorntime.app/ | 5 | url = https://popcorntime.app/ |
6 | arch = x86_64 | 6 | arch = x86_64 |
7 | license = GPL3 | 7 | license = GPL3 |
@@ -16,7 +16,7 @@ | |||
16 | pkgname=popcorntime-bin | 16 | pkgname=popcorntime-bin |
17 | _pkgname=popcorntime | 17 | _pkgname=popcorntime |
18 | pkgver=0.4.4 | 18 | pkgver=0.4.4 |
19 | pkgrel=1 | 19 | pkgrel=2 |
20 | pkgdesc="Stream free movies and TV shows from torrents" | 20 | pkgdesc="Stream free movies and TV shows from torrents" |
21 | arch=('x86_64') | 21 | arch=('x86_64') |
22 | url="https://popcorntime.app/" | 22 | url="https://popcorntime.app/" |
@@ -48,16 +48,8 @@ package() { | |||
48 | # Remove makepkg-created symlinks before copying content | 48 | # Remove makepkg-created symlinks before copying content |
49 | rm "$_zipfile" "${_pkgname}.desktop" | 49 | rm "$_zipfile" "${_pkgname}.desktop" |
50 | 50 | ||
51 | # Move library files to /usr/lib/popcorntime | 51 | # Copy complete content of source archive to /usr/share/${_pkgname} |
52 | install -d "${pkgdir}/usr/lib/${_pkgname}/${pkgver}" | 52 | cp -a "${srcdir}"/* "${pkgdir}/usr/share/${_pkgname}" |
53 | mv "${srcdir}"/lib/* "${pkgdir}/usr/lib/${_pkgname}/${pkgver}" | ||
54 | rmdir "${srcdir}"/lib | ||
55 | |||
56 | install -d "${pkgdir}/etc/ld.so.conf.d" | ||
57 | echo "/usr/lib/${_pkgname}/${pkgver}" > "${pkgdir}/etc/ld.so.conf.d/${_pkgname}.conf" | ||
58 | |||
59 | # Copy complete content of source archive to /usr/share/${_pkgname}/ | ||
60 | cp -a "${srcdir}"/* "${pkgdir}/usr/share/${_pkgname}/" | ||
61 | 53 | ||
62 | # Fix permissions | 54 | # Fix permissions |
63 | find "${pkgdir}/usr/share/${_pkgname}/" -perm 600 -exec chmod 644 '{}' \; | 55 | find "${pkgdir}/usr/share/${_pkgname}/" -perm 600 -exec chmod 644 '{}' \; |