updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / alacarte / PKGBUILD
blob0271efcdb7b05b9a3a634ba4de7c8dcefb0ef838
1 # Maintainer: 3ED <krzysztof1987 at googlemail>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: pressh <pressh@gmail.com>
5 pkgname=alacarte
6 pkgver=0.13.2
7 pkgrel=6
8 pkgdesc="Menu editor for gnome (with debian patchset)"
9 arch=(any)
10 license=('LGPL')
11 url="http://www.gnome.org"
12 depends=('gnome-menus2' 'gnome-panel>=2.32.0' 'hicolor-icon-theme' 'pygtk')
13 makedepends=('intltool')
14 install=alacarte.install
15 options=('!libtool')
16 groups=('gnome-extra')
17 source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.13/${pkgname}-${pkgver}.tar.bz2
18         http://patch-tracker.debian.org/patch/series/dl/alacarte/0.13.2-3/01-new_item_location.patch
19         http://patch-tracker.debian.org/patch/series/dl/alacarte/0.13.2-3/02-fix_delete_undo.patch
20         http://patch-tracker.debian.org/patch/series/dl/alacarte/0.13.2-3/03-bind_textdomain_codeset.patch
21         http://patch-tracker.debian.org/patch/series/dl/alacarte/0.13.2-3/10_settings_menu.patch)
22 sha256sums=('9fa36e5181b1eea947b184cb0f79d796b25cc5a5f122819a1ac2ff01bc7ee4ed'
23             '3a1d48d8104b7b9c6274906bf4a4f336ce4c96316d382e78a38f4bbe82d00172'
24             'd7637ee59cae0501f803514b9c26c4d9806c2b61ea948670ec3ac20b169c8e44'
25             '46c260029ae5b001648776f5b89806f1126c502bd828a879d1002495088742e8'
26             '64610f00ed9f0f78c28d6cadbb00e59ca5dc18e1675a8011141199bcecf33deb')
28 build() {
29   cd "${srcdir}/${pkgname}-${pkgver}"
31   for (( i=0; i < ${#source[@]}; i++ )); do
32     test "${source[i]}" = "${source[i]%.patch}" \
33       || patch -Np1 -i "${srcdir}/${source[i]##*/}"
34   done
36   ./configure \
37     --prefix=/usr \
38     --sysconfdir=/etc \
39     --localstatedir=/var
41   make
43 check() {
44   cd "${srcdir}/${pkgname}-${pkgver}"
45   make check
47 package() {
48   cd "${srcdir}/${pkgname}-${pkgver}"
49   make DESTDIR="${pkgdir}" install