Advertisement
Guest User

Albert 0.14.5-1 PKGBUILD (without virtualbox)

a guest
Oct 30th, 2017
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. # Maintainer: Manuel Schneider <manuelschneid3r at googles mail>
  2. pkgname=albert
  3. pkgver=0.14.5
  4. pkgrel=1
  5. pkgdesc="A sophisticated standalone keyboard launcher."
  6. arch=('i686' 'x86_64' 'armv7h')
  7. url="https://github.com/albertlauncher"
  8. license=('GPL')
  9. depends=(
  10. 'qt5-svg'
  11. 'qt5-x11extras'
  12. 'libx11'
  13. )
  14. makedepends=(
  15. 'cmake'
  16. 'gcc'
  17. 'git'
  18. 'muparser'
  19. 'python'
  20. 'qt5-declarative'
  21. 'qt5-svg'
  22. )
  23. optdepends=(
  24. 'muparser: Calculator plugin'
  25. 'python: Python extension'
  26. 'qt5-graphicaleffects: QML frontend'
  27. 'qt5-quickcontrols: QML frontend'
  28. 'virtualbox: VirtualBox plugin'
  29. )
  30. provides=('albert')
  31. conflicts=('albert-git')
  32. #source=("mirrors/albert::git+https://github.com/albertlauncher/albert.git#branch=dev"
  33. source=("mirrors/albert::git+https://github.com/albertlauncher/albert.git#tag=v${pkgver}"
  34. "mirrors/plugins::git+https://github.com/albertlauncher/plugins.git"
  35. "mirrors/python::git+https://github.com/albertlauncher/python.git"
  36. "mirrors/pybind11::git+https://github.com/pybind/pybind11.git")
  37. md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')
  38.  
  39.  
  40. prepare() {
  41.  
  42. cd "$srcdir/albert"
  43. git submodule init
  44. git config submodule.plugins.url "$srcdir/plugins"
  45. git submodule update plugins
  46.  
  47. cd "$srcdir/albert/plugins"
  48. git submodule init
  49. git config submodule.python/pybind11.url $srcdir/pybind11
  50. git config submodule.python/share/modules.url $srcdir/python
  51. git submodule update python/pybind11 python/share/modules
  52.  
  53. }
  54.  
  55.  
  56. build() {
  57. echo -e "
  58.  
  59. ╭──────────────────────────────────────────────╮
  60. │ │
  61. │ \e[31mThis is a plugin based application\e[0m │
  62. │ \e[31mCheck the optional dependencies\e[0m │
  63. │ │
  64. │ If you plan to report bugs please modify │
  65. │ the PKGBUILD to build the debug version. │
  66. │ │
  67. ╰──────────────────────────────────────────────╯
  68. "
  69.  
  70. [[ -d "build" ]] || mkdir -p "build"
  71. cd "build"
  72.  
  73. # https://ptpb.pw/_dFp
  74. cmake \
  75. "../${pkgname}" \
  76. -DCMAKE_INSTALL_PREFIX=/usr \
  77. -DCMAKE_INSTALL_LIBDIR=lib \
  78. -DCMAKE_BUILD_TYPE="RelWithDebInfo " \
  79. -Wno-dev \
  80. -DBUILD_VIRTUALBOX=OFF
  81.  
  82. # Maybe you want to add some of those
  83. # but remember to adjust the dependencies
  84.  
  85. #-DCMAKE_BUILD_TYPE="Debug"
  86. #-DBUILD_WIDGETBOXMODEL=ON
  87. #-DBUILD_QMLBOXMODEL=ON
  88. #-DBUILD_APPLICATIONS=ON
  89. #-DBUILD_CALCULATOR=ON
  90. #-DBUILD_CHROMEBOOKMARKS=ON
  91. #-DBUILD_EXTERNALEXTENSIONS=ON
  92. #-DBUILD_DEBUG=OFF
  93. #-DBUILD_FILES=ON
  94. #-DBUILD_FIREFOXBOOKMARKS=ON
  95. #-DBUILD_HASHGENERATOR=ON
  96. #-DBUILD_KVSTORE=ON
  97. #-DBUILD_MPRIS=ON
  98. #-DBUILD_PYTHON=ON
  99. #-DBUILD_SSH=ON
  100. #-DBUILD_SYSTEM=ON
  101. #-DBUILD_TEMPLATE=OFF
  102. #-DBUILD_TERMINAL=ON
  103. #-DBUILD_VIRTUALBOX=ON
  104.  
  105. VERBOSE=1 make -j $((`nproc`+1))
  106. }
  107.  
  108.  
  109. package() {
  110. cd "${srcdir}/build"
  111. make DESTDIR="$pkgdir/" install
  112. }
  113.  
  114. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement