updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / ccsm-ubuntu / PKGBUILD
blob9ded99fff8ba5337f937cef85f8678a3ef6f68da
1 pkgname=ccsm-ubuntu
2 pkgver=0.9.5.92
3 _ubuntu_ver=0ubuntu1
4 pkgrel=1
5 pkgdesc="Compizconfig Settings Manager in Python - Ubuntu version"
6 arch=('any')
7 url="http://compiz.org"
8 install="ccsm-ubuntu.install"
9 license=('GPL')
10 provides=('ccsm')
11 conflicts=('ccsm')
12 depends=('compiz-core-ubuntu' 'compizconfig-python-ubuntu' 'pygtk')
13 source=(
14   "http://archive.ubuntu.com/ubuntu/pool/universe/c/compizconfig-settings-manager/compizconfig-settings-manager_${pkgver}.orig.tar.gz"
15   "http://archive.ubuntu.com/ubuntu/pool/universe/c/compizconfig-settings-manager/compizconfig-settings-manager_${pkgver}-${_ubuntu_ver}.diff.gz"
16   'ccsm-ubuntu.install'
18 sha512sums=(
19   '541feec8384540ca011190aceb9596d558ff4b71f03e64b7e8800adcdf942d9a47fe53859820ecad74f7b80d0914c4d7be5bd4499db8551d554701a3edf93802'
20   '678e762edbff4b34511c0e2612f5f45604ea62dca0d277bf13348bb6e32a77a05cbc7e9c8b75f31ea66c79da21e6dec11adb78070150416af3fc11b149af1721'
21   '1a65480d6be555c4524001d60371e1de213f729d0a2b9a351d1d98ce08672f317f12739ac1170ef44e1aa1eeb0b6f6c6a26a2565411b5ce9b268e2577920aac3'
24 build() {
25   cd "${srcdir}"
26   patch -Np1 -i compizconfig-settings-manager_${pkgver}-${_ubuntu_ver}.diff
27   cd "${pkgname%-*}-${pkgver}"
28   sed -i 's|^\(#!.*python\)$|\12|g' ccsm
29   python2 setup.py build --prefix="/usr"
32 package() {
33   cd "${srcdir}/${pkgname%-*}-${pkgver}"
34   python2 setup.py install --prefix="/usr" --root="${pkgdir}"
35   mkdir -p "${pkgdir}/usr/share/applications"
36   install -m644 "${srcdir}/${pkgname%-*}.desktop" "${pkgdir}/usr/share/applications/"