Skip to content
Browse files

[libzeitgeist] Update to version 0.3.18 with Ubuntu release 1ubuntu1

  • Loading branch information...
1 parent c605b8f commit 38050a93f5db8c3cdbd732321118a41a5894718a @chenxiaolong committed May 21, 2012
Showing with 17 additions and 7 deletions.
  1. +15 −5 libzeitgeist/PKGBUILD
  2. +2 −2 libzeitgeist/compare_versions.sh
View
20 libzeitgeist/PKGBUILD
@@ -3,7 +3,8 @@
# Contributor: thn81 <root@scrat>
pkgname=libzeitgeist
-pkgver=0.3.18
+_ubuntu_rel=1ubuntu1
+pkgver=0.3.18.${_ubuntu_rel}
pkgrel=100
pkgdesc="Provides a client library for applications that want to interact with the Zeitgeist daemon"
arch=('i686' 'x86_64')
@@ -12,18 +13,27 @@ license=('LGPL')
depends=('glib2')
groups=('unity')
options=(!libtool)
-source=("http://launchpad.net/${pkgname}/${pkgver%.*}/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('6ad3f0ed74935c20ce23d80208c5a787e4db2e2d58ae5036c6681c3d531e20cc0981be961d66a408a7e1b03909af0212693feddc515240d724acbd5ac5c8cf6e')
+source=("http://launchpad.net/${pkgname}/${pkgver%.*.*}/${pkgver%.*}/+download/${pkgname}-${pkgver%.*}.tar.gz"
+ "https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver%.*}-${_ubuntu_rel}.debian.tar.gz")
+sha512sums=('6ad3f0ed74935c20ce23d80208c5a787e4db2e2d58ae5036c6681c3d531e20cc0981be961d66a408a7e1b03909af0212693feddc515240d724acbd5ac5c8cf6e'
+ '2f20f648f9cbae741a835d479a4da2e8f736d8882a146b2e98d0940822ef10299486c35a4b7700c76aac3c8bedd71a53d706091993e62b4de15de8d508c7bd6a')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgname}-${pkgver%.*}"
+
+ # Apply Ubuntu patches
+ for i in $(cat "${srcdir}/debian/patches/series" | grep -v '#'); do
+ patch -Np1 -i "${srcdir}/debian/patches/${i}"
+ done
./configure --prefix=/usr --disable-static
make ${MAKEFLAGS}
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgname}-${pkgver%.*}"
make DESTDIR="${pkgdir}/" install
}
+
+# vim:set ts=2 sw=2 et:
View
4 libzeitgeist/compare_versions.sh
@@ -3,13 +3,13 @@
source "$(dirname ${0})/PKGBUILD"
echo "Getting latest Ubuntu version..."
-UBUNTU_VER=($(wget -q 'http://packages.ubuntu.com/precise/source/libzeitgeist' -O - | sed -n 's/.*>libzeitgeist_\(.*\)-\(.*\)\.debian\.tar\.gz<.*/\1 \2/p'))
+UBUNTU_VER=($(wget -q 'http://packages.ubuntu.com/precise-updates/source/libzeitgeist' -O - | sed -n 's/.*>libzeitgeist_\(.*\)-\(.*\)\.debian\.tar\.gz<.*/\1 \2/p'))
echo "Getting latest upstream version..."
UPSTREAM_VER=$(wget -q 'https://launchpad.net/libzeitgeist/+download' -O - | sed -n 's/.*libzeitgeist-\(.*\)\.tar\.gz.*/\1/p' | head -n 1)
echo ""
-echo -e "PKGBUILD version: ${pkgver}"
+echo -e "PKGBUILD version: ${pkgver%.*} ${_ubuntu_rel}"
echo -e "Upstream version: ${UPSTREAM_VER}"
echo -e "Ubuntu version: ${UBUNTU_VER[@]}"

0 comments on commit 38050a9

Please sign in to comment.
Something went wrong with that request. Please try again.