Advertisement
timcowchip

k9copy pkgfile

Nov 15th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. # Description: A small utility to copy DVD
  2. # URL: http://sourceforge.net/projects/k9copy-reloaded/
  3. # Maintainer: Chris Farrell, timcowchip at gmail dot com
  4. # Depends on: qt5 cmake kde-libs libmpeg2 xine-lib docbook-xsl docbook-xmldvd+rw-tools dvdauthor libdvdnav libdvdcss kf5-kwidgetsaddons kf5-kguiaddons kf5-kxmlgui kf5-kauth kf5-kcodecs kf5-kcmutils kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdesu kf5-kdnssd kf5-ki18n kf5-kjobwidgets kf5-kpty kf5-kservice kf5-ktexteditor kf5-ktextwidgets kf5-kwidgetsaddons kf5-kxmlgui kf5-kxmlrpcclient kf5-solid
  5.  
  6. name=k9copy
  7. version=3.0.3
  8. release=1
  9.  
  10. source=("http://sourceforge.net/projects/k9copy-reloaded/files/$name-$version.tar.gz" 'CMakeLists.patch')
  11.  
  12.  
  13.  
  14. build() {
  15. cd $SRC/$name
  16. patch -p1 -i $SRC/CMakeLists.patch
  17. sed -i -e 's|#SET(CMAKE_BUILD_TYPE Debug)|cmake_minimum_required(VERSION 3.2)|' ${SRC}/${name}/CMakeLists.txt
  18. cmake ../${name} \
  19. -DCMAKE_BUILD_TYPE=Release \
  20. -DCMAKE_INSTALL_PREFIX=/usr \
  21. -DLIB_INSTALL_DIR=lib \
  22. -DSYSCONF_INSTALL_DIR=/etc \
  23. -DQT5_BUILD=ON \
  24. -DQML_INSTALL_DIR=/usr/lib/qt5/qml \
  25. -DPLUGIN_INSTALL_DIR=/usr/lib/qt5/plugins \
  26. -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
  27.  
  28. make
  29.  
  30. make DESTDIR="$PKG" install
  31. }
  32. # post-install k9copy
  33. post_install() {
  34.  
  35. }
  36.  
  37. post_upgrade() {
  38. post_install
  39. }
  40.  
  41. post_remove() {
  42. post_install
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement