summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxiota2024-02-06 22:52:54 -0800
committerxiota2024-02-06 23:00:09 -0800
commitb06d43f270eefa5397934f789b4e22d74f31fdcc (patch)
treeae64b178baa911febf1bc571aab233895ec9e16f
parent8e5be9cd8cbe42bf8fa1f8c46a6d7a3674cf2140 (diff)
downloadaur-b06d43f270eefa5397934f789b4e22d74f31fdcc.tar.gz
reorganize
update depends, license strings prune contributor list People who were not directly involved with this package may not appreciate having been added to a mailing list related to it.
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD274
2 files changed, 172 insertions, 122 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7f73b6fd6a50..49ca7b2243b8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,24 @@
pkgbase = compiz-git
- pkgdesc = Composite manager for Aiglx and Xgl, with plugins and CCSM (development version)
- pkgver = 0.9.14.2.r0.g12aca6852
- pkgrel = 1
+ pkgdesc = Composite manager for Aiglx and Xgl, with plugins and CCSM
+ pkgver = 0.9.14.2.r0.g12aca685
+ pkgrel = 2
url = https://launchpad.net/compiz
arch = i686
arch = x86_64
- license = GPL
- license = LGPL
+ license = GPL-2.0-or-later
+ license = LGPL-2.1-or-later
license = MIT
makedepends = boost
makedepends = cmake
makedepends = cython
- makedepends = git
makedepends = intltool
+ makedepends = python-setuptools
+ makedepends = git
depends = boost-libs
depends = fuse2
depends = glibmm
depends = glu
+ depends = libnotify
depends = libwnck3
depends = libxslt
depends = metacity
@@ -30,11 +32,10 @@ pkgbase = compiz-git
provides = compiz-core=0.9.14
provides = compiz-plugins-extra=0.9.14
provides = compiz-plugins-main=0.9.14
- provides = compiz=0.9.14
provides = compizconfig-python=0.9.14
provides = libcompizconfig=0.9.14
+ provides = compiz=0.9.14
conflicts = ccsm
- conflicts = compiz
conflicts = compiz-bcop
conflicts = compiz-core
conflicts = compiz-fusion-plugins-experimental
@@ -44,7 +45,8 @@ pkgbase = compiz-git
conflicts = compizconfig-python
conflicts = libcompizconfig
conflicts = simple-ccsm
- source = git+https://git.launchpad.net/compiz
+ conflicts = compiz
+ source = compiz::git+https://git.launchpad.net/compiz
source = focus-prevention-disable.patch
source = gtk-extents.patch
source = reverse-unity-config.patch
diff --git a/PKGBUILD b/PKGBUILD
index 0356554fc986..6a305b957325 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,88 +1,133 @@
-# Maintainer: Robert Brzozowski <robson75@linux.pl>
-# Maintainer: Charles Bos <charlesbos1 AT gmail>
-# Contributor: Rob McCathie <archaur at rmcc dot com dot au
-# Contributor: /dev/rs0 <rs0@secretco.de.com>
-# Contributor: Iven Hsu <ivenvd AT gmail>
-# Contributor: Nathan Hulse <nat.hulse@gmail.com>
+# Maintainer:
+# Contributor: Robert Brzozowski <robson75@linux.pl>
+# Contributor: Charles Bos <charlesbos1 AT gmail>
+## options
+: ${_build_git:=true}
+
+[[ "${_build_git::1}" == "t" ]] && _pkgtype+="-git"
+
+## basic info
_pkgname='compiz'
-pkgname="$_pkgname-git"
-pkgver=0.9.14.2.r0.g12aca6852
-pkgrel=1
-pkgdesc="Composite manager for Aiglx and Xgl, with plugins and CCSM (development version)"
-arch=('i686' 'x86_64')
+pkgname="$_pkgname${_pkgtype:-}"
+pkgver=0.9.14.2.r0.g12aca685
+pkgrel=2
+pkgdesc="Composite manager for Aiglx and Xgl, with plugins and CCSM"
url="https://launchpad.net/compiz"
-license=('GPL' 'LGPL' 'MIT')
-depends=(
- 'boost-libs'
- 'fuse2'
- 'glibmm'
- 'glu'
- 'libwnck3'
- 'libxslt'
- 'metacity'
- 'protobuf'
- 'python-cairo'
- 'python-gobject'
- 'xorg-server'
-)
-makedepends=(
- 'boost'
- 'cmake'
- 'cython'
- 'git'
- 'intltool'
-)
-optdepends=(
- 'xorg-xprop: grab various window properties for use in window matching rules'
-)
-conflicts=(
- 'ccsm'
- 'compiz'
- 'compiz-bcop'
- 'compiz-core'
- 'compiz-fusion-plugins-experimental'
- 'compiz-fusion-plugins-extra'
- 'compiz-fusion-plugins-main'
- 'compiz-gtk'
- 'compizconfig-python'
- 'libcompizconfig'
- 'simple-ccsm'
-)
-provides=(
- "ccsm=${pkgver:0:6}"
- "compiz-bcop=${pkgver:0:6}"
- "compiz-core=${pkgver:0:6}"
- "compiz-plugins-extra=${pkgver:0:6}"
- "compiz-plugins-main=${pkgver:0:6}"
- "compiz=${pkgver:0:6}"
- "compizconfig-python=${pkgver:0:6}"
- "libcompizconfig=${pkgver:0:6}"
-)
-source=(
- "git+https://git.launchpad.net/compiz"
- "focus-prevention-disable.patch"
- "gtk-extents.patch"
- "reverse-unity-config.patch"
- "screenshot-launch-fix.patch"
- "no-compile-gschemas.patch"
-)
-sha256sums=(
- 'SKIP'
- 'f4897590b0f677ba34767a29822f8f922a750daf66e8adf47be89f7c2550cf4b'
- '16ddb6311ce42d958505e21ca28faae5deeddce02cb558d55e648380274ba4d9'
- '6ec9c04540ca1649c687d9ab2c8311caea7075831e2cffe719ec7958c9ebab7b'
- '89ee91a8ea6b1424ef76661ea9a2db43412366aacddc12d24a7adf5e04bfbc61'
- '4ab3277da201314b3f65e30128bc30704ddee584fdbbfc8d0d83c7e0de91fa9a'
+arch=('i686' 'x86_64')
+license=(
+ 'GPL-2.0-or-later'
+ 'LGPL-2.1-or-later'
+ 'MIT'
)
-pkgver() {
- cd "$srcdir/$_pkgname"
- git describe --long --tags | sed 's/.%//;s/\+.*ubuntu.//;s/\([^-]*-g\)/r\1/;s/-/./g'
+# main package
+_main_package() {
+ depends=(
+ 'boost-libs'
+ 'fuse2'
+ 'glibmm'
+ 'glu'
+ 'libnotify'
+ 'libwnck3'
+ 'libxslt'
+ 'metacity'
+ 'protobuf'
+ 'python-cairo'
+ 'python-gobject'
+ 'xorg-server'
+ )
+ makedepends=(
+ 'boost'
+ 'cmake'
+ 'cython'
+ 'intltool'
+ 'python-setuptools'
+ )
+ optdepends=(
+ 'xorg-xprop: grab various window properties for use in window matching rules'
+ )
+
+ conflicts=(
+ 'ccsm'
+ 'compiz-bcop'
+ 'compiz-core'
+ 'compiz-fusion-plugins-experimental'
+ 'compiz-fusion-plugins-extra'
+ 'compiz-fusion-plugins-main'
+ 'compiz-gtk'
+ 'compizconfig-python'
+ 'libcompizconfig'
+ 'simple-ccsm'
+ )
+ provides=(
+ "ccsm=${pkgver:0:6}"
+ "compiz-bcop=${pkgver:0:6}"
+ "compiz-core=${pkgver:0:6}"
+ "compiz-plugins-extra=${pkgver:0:6}"
+ "compiz-plugins-main=${pkgver:0:6}"
+ "compizconfig-python=${pkgver:0:6}"
+ "libcompizconfig=${pkgver:0:6}"
+ )
+
+ if [ "${_build_git::1}" != "t" ] ; then
+ _main_stable
+ else
+ _main_git
+ fi
+
+ source+=(
+ "focus-prevention-disable.patch"
+ "gtk-extents.patch"
+ "reverse-unity-config.patch"
+ "screenshot-launch-fix.patch"
+ "no-compile-gschemas.patch"
+ )
+ sha256sums+=(
+ 'f4897590b0f677ba34767a29822f8f922a750daf66e8adf47be89f7c2550cf4b'
+ '16ddb6311ce42d958505e21ca28faae5deeddce02cb558d55e648380274ba4d9'
+ '6ec9c04540ca1649c687d9ab2c8311caea7075831e2cffe719ec7958c9ebab7b'
+ '89ee91a8ea6b1424ef76661ea9a2db43412366aacddc12d24a7adf5e04bfbc61'
+ '4ab3277da201314b3f65e30128bc30704ddee584fdbbfc8d0d83c7e0de91fa9a'
+ )
}
+# stable package
+_main_stable() {
+ _pkgsrc="$_pkgname-${pkgver%%.r*}"
+ _pkgext="tar.xz"
+ source+=(
+ "$_pkgsrc.$_pkgext"::"https://launchpad.net/$_pkgname/${pkgver:0:6}/${pkgver%%.r*}/+download/$_pkgsrc.$_pkgext"
+ )
+ sha256sums+=(
+ 'cfa061e93b032275ff9e7041f582a8f6d5ae271cf8a89e6bc74e3d3635999d3c'
+ )
+
+ pkgver() {
+ echo "${pkgver%%.r*}"
+ }
+}
+
+# git package
+_main_git() {
+ makedepends+=('git')
+
+ conflicts+=('compiz')
+ provides+=("compiz=${pkgver:0:6}")
+
+ _pkgsrc="$_pkgname"
+ source+=("$_pkgsrc"::"git+https://git.launchpad.net/compiz")
+ sha256sums+=('SKIP')
+
+ pkgver() {
+ cd "$_pkgsrc"
+ git describe --long --tags --abbrev=8 --exclude='*[a-zA-Z][a-zA-Z]*' | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+ }
+}
+
+# common functions
prepare() {
- cd "$srcdir/$_pkgname"
+ cd "$_pkgsrc"
# Reverse Unity specific configuration patches
patch -p1 -i "$srcdir/reverse-unity-config.patch"
@@ -101,51 +146,54 @@ prepare() {
}
build() {
- cd "$srcdir/$_pkgname"
-
- mkdir -p build
- cd build
-
- cmake .. \
- -DCMAKE_CXX_STANDARD=17 \
- -DCMAKE_INSTALL_PREFIX="/usr" \
- -DCMAKE_INSTALL_LIBDIR="/usr/lib" \
- -DCOMPIZ_DISABLE_SCHEMAS_INSTALL=On \
- -DCOMPIZ_BUILD_WITH_RPATH=Off \
- -DCOMPIZ_PACKAGING_ENABLED=On \
- -DBUILD_GTK=On \
- -DBUILD_METACITY=On \
- -DBUILD_KDE4=Off \
- -DCOMPIZ_BUILD_TESTING=Off \
- -DCOMPIZ_WERROR=Off \
- -DCOMPIZ_DEFAULT_PLUGINS="composite,opengl,decor,resize,place,move,compiztoolbox,staticswitcher,regex,animation,ccp"
-
- make
+ local _cmake_options=(
+ -B build
+ -S "$_pkgsrc"
+
+ -DCMAKE_CXX_STANDARD=17
+ -DCMAKE_BUILD_TYPE="Release"
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ -DCMAKE_INSTALL_LIBDIR="/usr/lib"
+ -DCOMPIZ_DISABLE_SCHEMAS_INSTALL=ON
+ -DCOMPIZ_BUILD_WITH_RPATH=OFF
+ -DCOMPIZ_PACKAGING_ENABLED=ON
+ -DBUILD_GTK=ON
+ -DBUILD_METACITY=ON
+ -DBUILD_KDE4=OFF
+ -DCOMPIZ_DEFAULT_PLUGINS="composite,opengl,decor,resize,place,move,compiztoolbox,staticswitcher,regex,animation,wall,ccp"
+
+ -DCOMPIZ_BUILD_TESTING=OFF
+ -DCOMPIZ_WERROR=OFF
+ -Wno-dev
+ )
+
+ cmake "${_cmake_options[@]}"
+ cmake --build build
}
package() {
- cd "$srcdir/$_pkgname"
- cd build
-
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
# findcompiz_install needs COMPIZ_DESTDIR and install needs DESTDIR
# make findcompiz_install
CMAKE_DIR=$(cmake --system-information | grep '^CMAKE_ROOT' | awk -F\" '{print $2}')
- install -Dm644 ../cmake/FindCompiz.cmake \
- -t "${pkgdir}${CMAKE_DIR}/Modules/"
+ install -Dm644 "$_pkgsrc/cmake/FindCompiz.cmake" \
+ -t "${pkgdir}${CMAKE_DIR}/Modules/"
- # Add documentation
- install -Dm644 ../{AUTHORS,NEWS,README} \
- -t "$pkgdir/usr/share/doc/compiz/"
+ # documentation
+ #install -Dm644 "$_pkgsrc"/{AUTHORS,NEWS,README} \
+ # -t "$pkgdir/usr/share/doc/compiz/"
- # Add gsettings schema files
- if ls generated/glib-2.0/schemas/ | grep -qm1 .gschema.xml; then
- install -Dm644 generated/glib-2.0/schemas/*.gschema.xml \
- -t "$pkgdir/usr/share/glib-2.0/schemas/"
- fi
+ # gsettings schema files
+ if ls build/generated/glib-2.0/schemas/ | grep -qm1 .gschema.xml; then
+ install -Dm644 build/generated/glib-2.0/schemas/*.gschema.xml \
+ -t "$pkgdir/usr/share/glib-2.0/schemas/"
+ fi
- # Install licenses
- install -Dm644 "$srcdir/$_pkgname"/{COPYING,COPYING.GPL,COPYING.LGPL,COPYING.MIT} \
+ # licenses
+ install -Dm644 "$_pkgsrc"/{COPYING,COPYING.GPL,COPYING.LGPL,COPYING.MIT} \
-t "$pkgdir/usr/share/licenses/$pkgname"
}
+
+# execute
+_main_package