summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 3 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 79b10b8..ff878e4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,7 @@
16pkgname=popcorntime-bin 16pkgname=popcorntime-bin
17_pkgname=popcorntime 17_pkgname=popcorntime
18pkgver=0.4.4 18pkgver=0.4.4
19pkgrel=1 19pkgrel=2
20pkgdesc="Stream free movies and TV shows from torrents" 20pkgdesc="Stream free movies and TV shows from torrents"
21arch=('x86_64') 21arch=('x86_64')
22url="https://popcorntime.app/" 22url="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 '{}' \;