Last active
October 11, 2015 04:19
-
-
Save sukso96100/c1db0335e1127cacfdaf to your computer and use it in GitHub Desktop.
Edited PKGBUILD for libinducator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Maxime Gauduin <alucryd@archlinux.org> | |
# Contributor: Balló György <ballogyor+arch@gmail.com> | |
pkgbase=libindicator | |
pkgname=('libindicator-gtk2' 'libindicator-gtk3') | |
pkgver=12.10.1 | |
pkgrel=4 | |
pkgdesc='A set of symbols and convenience functions for Ayatana indicators' | |
arch=('i686' 'x86_64') | |
url='https://launchpad.net/libindicator' | |
license=('GPL') | |
makedepends=('gtk2' 'gtk3') | |
source=("https://launchpad.net/libindicator/${pkgver%.*}/${pkgver}/+download/libindicator-${pkgver}.tar.gz") | |
sha256sums=('b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f') | |
prepare() { | |
sed '/-Werror/s/$/ -Wno-deprecated-declarations/' -i libindicator-${pkgver}/libindicator/Makefile.{am,in} | |
cp -r libindicator-${pkgver} libindicator-gtk2-${pkgver} | |
} | |
build() { | |
cd libindicator-${pkgver} | |
sed -i 's/LIBINDICATOR_LIBS+="$LIBM"/LIBINDICATOR_LIBS+=" $LIBM"/g' ./configure | |
./configure \ | |
--prefix='/usr' \ | |
--libexecdir='/usr/lib/libindicator' \ | |
--localstatedir='/var' \ | |
--sysconfdir='/etc' \ | |
--disable-static \ | |
--disable-tests | |
make -j1 | |
cd ../libindicator-gtk2-${pkgver} | |
sed -i 's/LIBINDICATOR_LIBS+="$LIBM"/LIBINDICATOR_LIBS+=" $LIBM"/g' ./configure | |
./configure \ | |
--prefix='/usr' \ | |
--localstatedir='/var' \ | |
--libexecdir='/usr/lib/libindicator' \ | |
--sysconfdir='/etc' \ | |
--with-gtk='2' \ | |
--disable-static \ | |
--disable-tests | |
make -j1 | |
} | |
package_libindicator-gtk2() { | |
depends=('gtk2') | |
provides=('libindicator') | |
conflicts=('libindicator') | |
cd libindicator-gtk2-${pkgver} | |
make -j1 DESTDIR="${pkgdir}" install | |
rm -rf "${pkgdir}"/usr/share | |
} | |
package_libindicator-gtk3() { | |
depends=('gtk3') | |
provides=('libindicator3') | |
conflicts=('libindicator3') | |
cd libindicator-${pkgver} | |
make -j1 DESTDIR="${pkgdir}" install | |
rm -rf "${pkgdir}"/usr/share | |
} | |
# vim: ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment