Skip to content
Browse files

[libunity-webapps] Update to version version 2.4.1 with Ubuntu releas…

…e 0ubuntu3.1
  • Loading branch information...
1 parent ed60977 commit fd68c0c4000a83fce4ee0b427062093298b04b75 @chenxiaolong committed Nov 17, 2012
Showing with 15 additions and 6 deletions.
  1. +14 −5 libunity-webapps/PKGBUILD
  2. +1 −1 libunity-webapps/compare_versions.sh
View
19 libunity-webapps/PKGBUILD
@@ -1,7 +1,9 @@
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
pkgname=libunity-webapps
-pkgver=2.4.1
+_ubuntu_rel=0ubuntu3.1
+_actual_ver=2.4.1
+pkgver=${_actual_ver}.${_ubuntu_rel}
pkgrel=100
pkgdesc="WebApps: Library for the integration with the Unity desktop"
arch=('i686' 'x86_64')
@@ -12,18 +14,25 @@ depends=('geoclue' 'glib2' 'hicolor-icon-theme' 'indicator-messages' 'json-glib'
makedepends=('gobject-introspection')
options=('!libtool')
install=libunity-webapps.install
-source=("https://launchpad.net/libunity-webapps/trunk/${pkgver}/+download/unity_webapps-${pkgver}.tar.gz")
-sha512sums=('25e9024bd1e4109b284be414b3c5d010b69f359fcc4a7243d285b8e247ad4eb8bcd980d70af68436d66afafad9acfb4d5983b6dd0fa2f184fe7391b9d5254f5c')
+source=("https://launchpad.net/libunity-webapps/trunk/${_actual_ver}/+download/unity_webapps-${_actual_ver}.tar.gz"
+ "https://launchpad.net/ubuntu/+archive/primary/+files/libunity-webapps_${_actual_ver}-${_ubuntu_rel}.debian.tar.gz")
+sha512sums=('25e9024bd1e4109b284be414b3c5d010b69f359fcc4a7243d285b8e247ad4eb8bcd980d70af68436d66afafad9acfb4d5983b6dd0fa2f184fe7391b9d5254f5c'
+ '7013d07728d8722893cbc166293b66ec90b1b45f2c4bad826375ff81814ebe00b305f5653bf55833a1226896e380ae11e218cf0f65480725a8c0e4bdfcbd634a')
build() {
- cd "${srcdir}/unity_webapps-${pkgver}"
+ cd "${srcdir}/unity_webapps-${_actual_ver}"
+
+ # Apply Ubuntu's patches
+ for i in $(grep -v '#' "${srcdir}/debian/patches/series"); do
+ patch -Np1 -i "${srcdir}/debian/patches/${i}"
+ done
./configure --prefix=/usr --libexecdir=/usr/lib/libunity-webapps --disable-static
make ${MAKEFLAGS}
}
package() {
- cd "${srcdir}/unity_webapps-${pkgver}"
+ cd "${srcdir}/unity_webapps-${_actual_ver}"
make DESTDIR="${pkgdir}/" install
}
View
2 libunity-webapps/compare_versions.sh
@@ -10,6 +10,6 @@ UPSTREAM_VER=$(wget -q 'https://launchpad.net/libunity-webapps/+download' -O - |
echo ""
-echo -e "PKGBUILD version: ${pkgver}"
+echo -e "PKGBUILD version: ${_actual_ver} ${_ubuntu_rel}"
echo -e "Upstream version: ${UPSTREAM_VER}"
echo -e "Ubuntu version: ${UBUNTU_VER[@]}"

0 comments on commit fd68c0c

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