summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostis Karantias2018-12-19 16:35:45 +0200
committerKostis Karantias2018-12-19 16:35:45 +0200
commit3242957eeac7522b73313f809e6462fb84c21a47 (patch)
treea4aea3e375a18725c43754e953bd115fdf3cb8e9
parentcc246b00ad404348920cb99356b16fa241d4639f (diff)
downloadaur-3242957eeac7522b73313f809e6462fb84c21a47.tar.gz
move library files to /usr/lib
-rw-r--r--PKGBUILD7
1 files changed, 7 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2aca7c49d7c..8abc2bdbc2a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -44,6 +44,13 @@ package() {
# Remove makepkg-created symlinks before copying content
rm *.tar.xz *.desktop
+ # Move library files to /usr/lib/popcorntime
+ install -d "${pkgdir}/usr/lib/${_pkgname}/${pkgver}"
+ mv "${srcdir}"/lib/* "${pkgdir}/usr/lib/${_pkgname}/${pkgver}"
+ rmdir "${srcdir}"/lib/
+ install -d "${pkgdir}/etc/ld.so.conf.d"
+ echo "/usr/lib/${_pkgname}/${pkgver}" > "${pkgdir}/etc/ld.so.conf.d/${_pkgname}.conf"
+
# Copy complete content of source archive to /usr/share/${_pkgname}/
cp -a "${srcdir}"/* "${pkgdir}/usr/share/${_pkgname}/"