diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 123 |
1 files changed, 12 insertions, 111 deletions
@@ -1,9 +1,6 @@ # Maintainer: sehraf # Contributor: stqn -# Set this to true to build and install retroshare-nogui -_build_nogui=true - # Set this to true to build and install the plugins _build_feedreader=true _build_voip=true @@ -30,7 +27,7 @@ source=("${_pkgname}::git+https://github.com/RetroShare/RetroShare.git" 'retroshare.install') sha256sums=('SKIP' - '47c23238cbfabb6f07b6a25666ee5941243176360ca28ec31378d94e87326ec1') + '44ea7d8b0208e8954391184dcbb8ff94b2efc246580057a1d2b2e73ad262aad2') # Add missing dependencies if needed [[ $_build_voip == true ]] && depends=(${depends[@]} 'speex' 'opencv') @@ -44,100 +41,31 @@ pkgver() { build() { cd "${srcdir}/${_pkgname}" - _qmake='qmake-qt4' - - # - # BUILD HERE - # - msg "Compiling OpenPGP-SDK..." - cd openpgpsdk/src - $_qmake - make - cd ../.. - - msg "Compiling libbitdht..." - cd libbitdht/src - $_qmake - make - cd ../.. - - msg "Compiling pegmarkdown..." - cd supportlibs/pegmarkdown - $_qmake - make - cd ../.. + # remove unwanted plugins + if [[ "$_build_voip" != "true" ]] ; then + sed -i '/VOIP \\/d' plugins/plugins.pro + fi + if [[ "$_build_feedreader" != "true" ]] ; then + sed -i '/FeedReader/d' plugins/plugins.pro + fi - msg "Compiling libretroshare..." + # call version scripts cd libretroshare/src - $_qmake LANG=C ./version_detail.sh - make - cd ../.. - - msg "Compiling libresapi..." - cd libresapi/src - $_qmake - make - # i'm not 100% sure if this step is required - # it will download/update some JavaScript files - msg "Updating webui files..." - cd webui - make - cd .. cd ../.. - msg "Compiling retroshare-gui..." cd retroshare-gui/src - $_qmake LANG=C ./version_detail.sh - make cd ../.. - if [[ "$_build_voip" == "true" ]] ; then - msg "Compiling VOIP plugin..." - cd plugins/VOIP - $_qmake - make - cd ../.. - fi - - if [[ "$_build_feedreader" == "true" ]] ; then - msg "Compiling FeedReader plugin..." - cd plugins/FeedReader - $_qmake - make - cd ../.. - fi - - if [[ "$_build_nogui" == "true" ]]; then - msg "Compiling retroshare-nogui..." - cd retroshare-nogui/src - $_qmake - make - cd ../.. - fi + qmake-qt4 CONFIG=release PREFIX='/usr' LIB_DIR='/usr/lib' RetroShare.pro + make } package() { cd "${srcdir}/${_pkgname}" - # Binaries - install -D -m 755 \ - retroshare-gui/src/RetroShare06 \ - "$pkgdir/usr/bin/retroshare" - if [[ "$_build_nogui" == "true" ]]; then - install -D -m 755 \ - "retroshare-nogui/src/RetroShare06-nogui" \ - "${pkgdir}/usr/bin/retroshare-nogui" - fi - - # Webui files - install -d -m 655 "${pkgdir}/usr/share/RetroShare06/webui/" - for _file in $(ls libresapi/src/webfiles/); do - install -D -m 644 \ - "libresapi/src/webfiles/${_file}" \ - "${pkgdir}/usr/share/RetroShare06/webui/" - done + make INSTALL_ROOT="${pkgdir}" install # Plugins if [[ "$_build_voip" == "true" ]] ; then @@ -150,31 +78,4 @@ package() { "plugins/FeedReader/libFeedReader.so" \ "${pkgdir}/usr/lib/retroshare/extensions6/libFeedReader.so" fi - - # Applications menu entry - mkdir -p "$pkgdir/usr/share/applications" - cat >"$pkgdir/usr/share/applications/retroshare.desktop" <<EOF -[Desktop Entry] -Version=1.0 -Type=Application -Name=RetroShare -GenericName=Sharing Network -Comment=Secure communication with your friends -Icon=/usr/share/pixmaps/retroshare_blue.png -Exec=/usr/bin/retroshare -Terminal=false -StartupNotify=true -Categories=Network;InstantMessaging;FileTransfer;Chat;Email; -EOF - install -D -m 644 \ - "retroshare-gui/src/gui/images/logo/logo_512.png" \ - "${pkgdir}/usr/share/pixmaps/retroshare_blue.png" - - # bdboot (needed to bootstrap the DHT) - install -D -m 644 \ - "libbitdht/src/bitdht/bdboot.txt" \ - "${pkgdir}/usr/share/RetroShare06/bdboot.txt" - - # Skins - cp -r "retroshare-gui/src/qss" "${pkgdir}/usr/share/RetroShare06/" } |