summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorShadowKyogre2017-04-04 11:35:30 -0700
committerShadowKyogre2017-04-04 11:35:30 -0700
commit0792cca09aad43c532510d0fecc64419568de597 (patch)
treeeec8680359c49ab9a642efe70fc1a862989d0dc7
parent0d91e5d9bad7fb91a1b3f3308f84e8eae0bf1ca4 (diff)
downloadaur-0792cca09aad43c532510d0fecc64419568de597.tar.gz
Turn ccsm-git into a split package
Making ccsm-git a split package made it easier for ccsm to be built against GTK+2 or GTK+3. On a miscellaneous note, hicolor-icon-theme was added to the dependencies after checking the built packages with namcap.
-rw-r--r--.SRCINFO22
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD18
-rw-r--r--ccsm.install15
4 files changed, 32 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index aeb1c371074..2ef32ce1869 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,10 @@
# Generated by mksrcinfo v8
-# Sat Jun 18 19:02:06 UTC 2016
+# Tue Apr 4 18:00:43 UTC 2017
pkgbase = ccsm-git
pkgdesc = Compizconfig Settings Manager in Python2
- pkgver = 0.8.12.3.r10.g4b29da9
- pkgrel = 2
+ pkgver = 0.8.12.3.r33.gaaf97ec
+ pkgrel = 1
url = https://github.com/compiz-reloaded/ccsm
- install = ccsm.install
arch = any
groups = compiz-fusion
groups = compiz-fusion-gtk
@@ -15,12 +14,25 @@ pkgbase = ccsm-git
depends = compizconfig-python-git
depends = python-gobject
depends = python-cairo
+ depends = hicolor-icon-theme
optdepends = compiz-gtk-standalone: option 1
optdepends = compiz-core: option 2
- provides = ccsm=0.8.12.3.r10.g4b29da9
+ provides = ccsm=0.8.12.3.r33.gaaf97ec
conflicts = ccsm
source = git+https://github.com/compiz-reloaded/ccsm.git
sha1sums = SKIP
pkgname = ccsm-git
+ depends = compizconfig-python-git
+ depends = python-gobject
+ depends = python-cairo
+ depends = hicolor-icon-theme
+ depends = gtk2
+
+pkgname = ccsm-gtk3-git
+ depends = compizconfig-python-git
+ depends = python-gobject
+ depends = python-cairo
+ depends = hicolor-icon-theme
+ depends = gtk3
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..a5401c5d685
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg/
+src/
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
index bf78b92fa3c..ce7a5b4622f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,14 +5,14 @@
_upstream="ccsm"
-pkgname=ccsm-git
-pkgver=0.8.12.3.r10.g4b29da9
-pkgrel=2
+pkgname=(ccsm-git ccsm-gtk3-git)
+pkgver=0.8.12.3.r33.gaaf97ec
+pkgrel=1
pkgdesc="Compizconfig Settings Manager in Python2"
arch=('any')
url="https://github.com/compiz-reloaded/${_upstream}"
license=('GPL')
-depends=("compizconfig-python-git" 'python-gobject' 'python-cairo')
+depends=("compizconfig-python-git" 'python-gobject' 'python-cairo' 'hicolor-icon-theme')
makedepends=('intltool')
optdepends=('compiz-gtk-standalone: option 1' 'compiz-core: option 2')
groups=('compiz-fusion' 'compiz-fusion-gtk' 'compiz-fusion-kde')
@@ -21,7 +21,6 @@ provides=("ccsm=$pkgver")
source=(
"git+https://github.com/compiz-reloaded/${_upstream}.git"
)
-install=ccsm.install
sha1sums=('SKIP')
pkgver() {
@@ -29,7 +28,14 @@ pkgver() {
git describe --long --tags|sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
-package() {
+package_ccsm-git() {
+ depends+=('gtk2')
cd "${srcdir}/${_upstream}"
python ./setup.py install --prefix=/usr --with-gtk=2.0 --root="${pkgdir}"
}
+
+package_ccsm-gtk3-git() {
+ depends+=('gtk3')
+ cd "${srcdir}/${_upstream}"
+ python ./setup.py install --prefix=/usr --with-gtk=3.0 --root="${pkgdir}"
+}
diff --git a/ccsm.install b/ccsm.install
deleted file mode 100644
index f03315d39da..00000000000
--- a/ccsm.install
+++ /dev/null
@@ -1,15 +0,0 @@
-pkgname=ccsm
-
-post_install() {
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
- gtk-update-icon-cache -q -t -f /usr/share/ccsm/icons/hicolor
-}
-
-post_upgrade() {
- post_install $1
-}
-
-
-post_remove() {
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}