diff options
author | root <root@rshg054.dnsready.net> | 2011-10-24 23:14:47 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-10-24 23:14:47 +0000 |
commit | 0d7bab226067a44a9f1b978924e8201a3fa60764 (patch) | |
tree | 7c17a659e61f8c790e75160fcecc9a9f63df2500 /testing/conky | |
parent | c0bc46632845dfc241d3290d8d3193287eaeb02e (diff) |
Mon Oct 24 23:14:47 UTC 2011
Diffstat (limited to 'testing/conky')
-rw-r--r-- | testing/conky/PKGBUILD | 48 | ||||
-rw-r--r-- | testing/conky/PKGBUILD.cmake | 47 |
2 files changed, 95 insertions, 0 deletions
diff --git a/testing/conky/PKGBUILD b/testing/conky/PKGBUILD new file mode 100644 index 000000000..bef408f4b --- /dev/null +++ b/testing/conky/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 141103 2011-10-24 00:41:06Z bisson $ +# Contributor: Giovanni Scafora <giovanni@archlinux.org> +# Contributor: James Rayner <james@archlinux.org> +# Contributor: Partha Chowdhury <kira.laucas@gmail.com> +# Maintainer: Gaetan Bisson <bisson@archlinux.org> + +pkgname=conky +pkgver=1.8.2git20111024 +pkgrel=1 +pkgdesc='Lightweight system monitor for X' +url='http://conky.sourceforge.net/' +license=('BSD' 'GPL') +arch=('i686' 'x86_64') +options=('!emptydirs') +makedepends=('pkg-config' 'docbook2x') +depends=('alsa-lib' 'libxml2' 'curl' 'wireless_tools' 'libxft' 'glib2' 'libxdamage' 'imlib2') +backup=('etc/conky/conky.conf' 'etc/conky/conky_no_x11.conf') +source=("ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz") +sha1sums=('490f5ffb431bffee71f7bf32f94cf611ae4f0646') + +# git clone git://git.omp.am/conky.git; cd conky; git archive --prefix=${pkgname}-${pkgver}/ origin/1.8.2 | xz > ../${pkgname}-${pkgver}.tar.xz + +replaces=('torsmo') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + sh autogen.sh + + CPPFLAGS="$CXXFLAGS" LIBS="$LDFLAGS" ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-ibm \ + --enable-curl \ + --enable-rss \ + --enable-weather-xoap \ + --enable-imlib2 \ + --disable-lua \ + --enable-wlan \ + + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/testing/conky/PKGBUILD.cmake b/testing/conky/PKGBUILD.cmake new file mode 100644 index 000000000..7f980868f --- /dev/null +++ b/testing/conky/PKGBUILD.cmake @@ -0,0 +1,47 @@ +# $Id: PKGBUILD 118899 2011-04-09 10:32:42Z bisson $ +# Contributor: Giovanni Scafora <giovanni@archlinux.org> +# Contributor: James Rayner <james@archlinux.org> +# Contributor: Partha Chowdhury <kira.laucas@gmail.com> +# Maintainer: Gaetan Bisson <bisson@archlinux.org> + +pkgname=conky +pkgver=1.8.2git20111021 +pkgrel=1 +pkgdesc='Lightweight system monitor for X' +url='http://conky.sourceforge.net/' +license=('BSD' 'GPL') +arch=('i686' 'x86_64') +makedepends=('pkg-config' 'cmake' 'git' 'docbook2x') +depends=('alsa-lib' 'libxml2' 'curl' 'wireless_tools' 'libxft' 'libxdamage' 'imlib2' 'lua') + +replaces=('torsmo') + +build() { + cd "${srcdir}" + + cd conky && { git pull origin; cd ..; } || git clone git://git.omp.am/conky.git + rm -fr build; mkdir build; cd build + + cmake \ + -D CMAKE_BUILD_TYPE:STRING="Release" \ + -D MAINTAINER_MODE:BOOL=ON \ + -D BUILD_CURL:BOOL=ON \ + -D BUILD_IMLIB2:BOOL=ON \ + -D BUILD_LUA_IMLIB2:BOOL=OFF \ + -D BUILD_MYSQL:BOOL=OFF \ + -D BUILD_RSS:BOOL=ON \ + -D BUILD_WEATHER_METAR:BOOL=ON \ + -D BUILD_WEATHER_XOAP:BOOL=ON \ + -D BUILD_WLAN:BOOL=ON \ + -D CMAKE_INSTALL_PREFIX:PATH=/usr \ + ../conky + + make +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}" install + install -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 ../conky/{COPYING,LICENSE}* "${pkgdir}/usr/share/licenses/${pkgname}" +} |