Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Commit

Permalink
[indicator-appmenu] Update to version 12.10.3 with Ubuntu release 0ub…
Browse files Browse the repository at this point in the history
…untu3
  • Loading branch information
Xiao-Long Chen committed Nov 18, 2012
1 parent 1f5d326 commit ae3860c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
21 changes: 15 additions & 6 deletions indicator-appmenu/PKGBUILD
Expand Up @@ -4,7 +4,8 @@


pkgbase=indicator-appmenu pkgbase=indicator-appmenu
pkgname=('indicator-appmenu' 'indicator-appmenu-tools') pkgname=('indicator-appmenu' 'indicator-appmenu-tools')
pkgver=12.10.3 _ubuntu_rel=0ubuntu3
pkgver=12.10.3.${_ubuntu_rel}
pkgrel=100 pkgrel=100
pkgdesc="An indicator to host the menus from an application" pkgdesc="An indicator to host the menus from an application"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
Expand All @@ -16,11 +17,19 @@ optdepends=('appmenu-gtk2: support for GTK+ 2 apps'
'appmenu-gtk3: support for GTK+ 3 apps' 'appmenu-gtk3: support for GTK+ 3 apps'
'appmenu-qt: support for Qt apps') 'appmenu-qt: support for Qt apps')
options=('!libtool' '!emptydirs') options=('!libtool' '!emptydirs')
source=("http://launchpad.net/${pkgbase}/12.10/${pkgver}/+download/${pkgbase}-${pkgver}.tar.gz") source=("http://launchpad.net/${pkgbase}/12.10/${pkgver%.*}/+download/${pkgbase}-${pkgver%.*}.tar.gz"
sha512sums=('0055c46d630f2988ff781f8224d3eb10822ebb4bf8f3ece8a808a4631a3c278580ccd19dd4d92b8438d176be6d84af30e0805b28c9507cdde1f2fbb45a579dfe') "https://launchpad.net/ubuntu/+archive/primary/+files/indicator-appmenu_${pkgver%.*}-${_ubuntu_rel}.diff.gz")
sha512sums=('0055c46d630f2988ff781f8224d3eb10822ebb4bf8f3ece8a808a4631a3c278580ccd19dd4d92b8438d176be6d84af30e0805b28c9507cdde1f2fbb45a579dfe'
'5322ac57e73499e998a2005308167f05489d5ce6bcfaa63ad3102cb1b53fcec76f7f4e62990d6370662f797210f7da47a9226e4efd20295e7b03b8900a0194af')


build() { build() {
cd "${srcdir}/${pkgbase}-${pkgver}" cd "${srcdir}/${pkgbase}-${pkgver%.*}"

# Apply Ubuntu's patches
patch -p1 -i "${srcdir}/indicator-appmenu_${pkgver%.*}-${_ubuntu_rel}.diff"
for i in $(grep -v '#' debian/patches/series); do
patch -p1 -i "debian/patches/${i}"
done


autoreconf -vfi autoreconf -vfi
intltoolize -f intltoolize -f
Expand All @@ -40,7 +49,7 @@ package_indicator-appmenu() {
depends=('dconf' 'libindicator3' 'libdbusmenu-gtk3' 'libbamf3') depends=('dconf' 'libindicator3' 'libdbusmenu-gtk3' 'libbamf3')
install="${pkgbase}.install" install="${pkgbase}.install"


cd "${srcdir}/${pkgbase}-${pkgver}/" cd "${srcdir}/${pkgbase}-${pkgver%.*}/"


make -C data DESTDIR="${pkgdir}/" install make -C data DESTDIR="${pkgdir}/" install
make -C src DESTDIR="${pkgdir}/" install make -C src DESTDIR="${pkgdir}/" install
Expand All @@ -54,7 +63,7 @@ package_indicator-appmenu-tools() {
depends=('indicator-appmenu') depends=('indicator-appmenu')


# Doesn't matter which one is used # Doesn't matter which one is used
cd "${srcdir}/${pkgbase}-${pkgver}/" cd "${srcdir}/${pkgbase}-${pkgver%.*}/"


make -C docs DESTDIR="${pkgdir}/" install make -C docs DESTDIR="${pkgdir}/" install
make -C tools DESTDIR="${pkgdir}/" install make -C tools DESTDIR="${pkgdir}/" install
Expand Down
4 changes: 2 additions & 2 deletions indicator-appmenu/compare_versions.sh
Expand Up @@ -3,13 +3,13 @@
source "$(dirname ${0})/PKGBUILD" source "$(dirname ${0})/PKGBUILD"


echo "Getting latest Ubuntu version..." echo "Getting latest Ubuntu version..."
UBUNTU_VER=($(wget -q -O - 'https://launchpad.net/ubuntu/quantal/+source/indicator-appmenu' | sed -n 's/^.*current\ release\ (\(.*\)-\(.*\)).*$/\1 \2/p')) UBUNTU_VER=($(wget -q -O - 'https://launchpad.net/ubuntu/raring/+source/indicator-appmenu' | sed -n 's/^.*current\ release\ (\(.*\)-\(.*\)).*$/\1 \2/p'))


echo "Getting latest upstream version..." echo "Getting latest upstream version..."
UPSTREAM_VER=$(wget -q 'https://launchpad.net/indicator-appmenu/+download' -O - | sed -n 's/.*indicator-appmenu-\(.*\)\.tar\.gz.*/\1/p' | head -n 1) UPSTREAM_VER=$(wget -q 'https://launchpad.net/indicator-appmenu/+download' -O - | sed -n 's/.*indicator-appmenu-\(.*\)\.tar\.gz.*/\1/p' | head -n 1)


echo "" echo ""


echo -e "PKGBUILD version: ${pkgver}" echo -e "PKGBUILD version: ${pkgver%.*} ${_ubuntu_rel}"
echo -e "Upstream version: ${UPSTREAM_VER}" echo -e "Upstream version: ${UPSTREAM_VER}"
echo -e "Ubuntu version: ${UBUNTU_VER[@]}" echo -e "Ubuntu version: ${UBUNTU_VER[@]}"

0 comments on commit ae3860c

Please sign in to comment.