Advertisement
Guest User

PKGBUILD

a guest
Nov 16th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.51 KB | None | 0 0
  1. # Maintainer: Charles Bos <charlesbos1 AT gmail>
  2. # Contributor: Rob McCathie <archaur at rmcc dot com dot au
  3. # Contributor: /dev/rs0 <[email protected]>
  4. # Contributor: Iven Hsu <ivenvd AT gmail>
  5. # Contributor: Nathan Hulse <[email protected]>
  6.  
  7. pkgname=compiz
  8. pkgver=0.9.14.0
  9. pkgrel=6
  10. pkgdesc="Composite manager for Aiglx and Xgl, with plugins and CCSM"
  11. arch=('i686' 'x86_64')
  12. url="https://launchpad.net/compiz"
  13. license=('GPL' 'LGPL' 'MIT')
  14. depends=('boost-libs' 'xorg-server' 'fuse2' 'glibmm' 'libwnck3' 'python-gobject' 'python-cairo' 'protobuf' 'metacity' 'glu')
  15. makedepends=('boost' 'cmake' 'intltool' 'cython')
  16. optdepends=(
  17.   'xorg-xprop: grab various window properties for use in window matching rules'
  18. )
  19. conflicts=('compiz-core' 'compiz-gtk' 'compiz-bcop' 'ccsm' 'compiz-fusion-plugins-main' 'compiz-fusion-plugins-extra' 'compiz-fusion-plugins-experimental' 'compizconfig-python' 'libcompizconfig' 'simple-ccsm')
  20. provides=("compiz-core=${pkgver}" "compiz-bcop=${pkgver}" "ccsm=${pkgver}" "compiz-plugins-main=${pkgver}" "compiz-plugins-extra=${pkgver}" "compizconfig-python=${pkgver}" "libcompizconfig=${pkgver}")
  21. source=("https://launchpad.net/${pkgname}/${pkgver:0:6}/${pkgver}/+download/${pkgname}-${pkgver}.tar.xz"
  22.         "focus-prevention-disable.patch"
  23.         "gtk-extents.patch"
  24.         "reverse-unity-config.patch"
  25.         "screenshot-launch-fix.patch"
  26.         "no-compile-gschemas.patch"
  27.         "ccsm-unicode-fix.patch"
  28.         "ccsm-escape-fix.patch")
  29. sha256sums=('52cd6a90ffe987bd0415fda23c34e1f3284aa34c4d8b4eefb160fbf4d1f33a2c'
  30.             'f4897590b0f677ba34767a29822f8f922a750daf66e8adf47be89f7c2550cf4b'
  31.             '16ddb6311ce42d958505e21ca28faae5deeddce02cb558d55e648380274ba4d9'
  32.             '6ec9c04540ca1649c687d9ab2c8311caea7075831e2cffe719ec7958c9ebab7b'
  33.             '89ee91a8ea6b1424ef76661ea9a2db43412366aacddc12d24a7adf5e04bfbc61'
  34.             '4ab3277da201314b3f65e30128bc30704ddee584fdbbfc8d0d83c7e0de91fa9a'
  35.             '78ab98cb0904cab84d57028f3c07defc5e3596dcd8c0f691bcb57a85f9e0c06e'
  36.             '1109592508cca7ece60d6bf04d7235228c11501efdc096ea7974ebd75f16e845')
  37.  
  38. prepare() {
  39.   cd "${pkgname}-${pkgver}"
  40.  
  41.   # Reverse Unity specific configuration patches
  42.   patch -p1 -i "${srcdir}/reverse-unity-config.patch"
  43.  
  44.   # Set focus prevention level to off which means that new windows will always get focus
  45.   patch -p1 -i "${srcdir}/focus-prevention-disable.patch"
  46.  
  47.   # Fix incorrect extents for GTK+ tooltips, csd etc
  48.   patch -p1 -i "${srcdir}/gtk-extents.patch"
  49.  
  50.   # Fix application launching for the screenshot plugin
  51.   patch -p1 -i "${srcdir}/screenshot-launch-fix.patch"
  52.  
  53.   # Don't try to compile gschemas during make install
  54.   patch -p1 -i "${srcdir}/no-compile-gschemas.patch"
  55.  
  56.   # Fix unicode related ccsm crashes #1816629
  57.   patch -p1 -i "${srcdir}/ccsm-unicode-fix.patch"
  58.  
  59.   # Fix HTML-escaping related ccsm crashes
  60.   patch -p1 -i "${srcdir}/ccsm-escape-fix.patch"
  61. }
  62.  
  63. build() {
  64.   cd "${pkgname}-${pkgver}"
  65.  
  66.   mkdir build; cd build
  67.  
  68.   cmake .. \
  69.     -DCMAKE_BUILD_TYPE="Release" \
  70.     -DCMAKE_INSTALL_PREFIX="/usr" \
  71.     -DCMAKE_INSTALL_LIBDIR="/usr/lib" \
  72.     -DCOMPIZ_DISABLE_SCHEMAS_INSTALL=On \
  73.     -DCOMPIZ_BUILD_WITH_RPATH=Off \
  74.     -DCOMPIZ_PACKAGING_ENABLED=On \
  75.     -DBUILD_GTK=On \
  76.     -DBUILD_METACITY=On \
  77.     -DBUILD_KDE4=Off \
  78.     -DCOMPIZ_BUILD_TESTING=Off \
  79.     -DCOMPIZ_WERROR=Off \
  80.     -DCOMPIZ_DEFAULT_PLUGINS="composite,opengl,decor,resize,place,move,compiztoolbox,staticswitcher,regex,animation,wall,ccp"
  81.  
  82.     make
  83. }
  84.  
  85. package() {
  86.   cd "${pkgname}-${pkgver}/build"
  87.   make DESTDIR="${pkgdir}" install
  88.  
  89.   # findcompiz_install needs COMPIZ_DESTDIR and install needs DESTDIR
  90.   # make findcompiz_install
  91.   CMAKE_DIR=$(cmake --system-information | grep '^CMAKE_ROOT' | awk -F\" '{print $2}')
  92.   install -dm755 "${pkgdir}${CMAKE_DIR}/Modules/"
  93.   install -m644 ../cmake/FindCompiz.cmake "${pkgdir}${CMAKE_DIR}/Modules/"
  94.  
  95.   # Add documentation
  96.   install -dm755 "${pkgdir}/usr/share/doc/compiz/"
  97.   install ../{AUTHORS,NEWS,README} "${pkgdir}/usr/share/doc/compiz/"
  98.  
  99.   # Add the gsettings schema files
  100.   if ls generated/glib-2.0/schemas/ | grep -qm1 .gschema.xml; then
  101.     install -dm755 "${pkgdir}/usr/share/glib-2.0/schemas/"
  102.     install -m644 generated/glib-2.0/schemas/*.gschema.xml "${pkgdir}/usr/share/glib-2.0/schemas/"
  103.   fi
  104.  
  105.   # Install licenses
  106.   install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
  107.   install -m644 "${srcdir}/${pkgname}-${pkgver}"/{COPYING,COPYING.GPL,COPYING.LGPL,COPYING.MIT} "${pkgdir}/usr/share/licenses/${pkgname}"
  108. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement