public
Created

Updated PKGBUILD for pnmixer-git with automake-1.13

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
# Maintainer: Nick Lanham <nick@afternight.org>
pkgname=pnmixer-git
pkgver=20130203
pkgrel=1
pkgdesc="PNMixer is a GTK volume mixer applet that runs in the system tray. \
It is lightweight, works with both pulseaudio and alsa, supports mouse wheel \
volume adjustment.
"
arch=('i686' 'x86_64')
license=('GPL')
url="https://github.com/nicklan/pnmixer"
groups=('pnmixer')
depends=('gtk2' 'alsa-lib')
makedepends=('git')
provides=('pnmixer')
conflicts=('pnmixer')
 
_gitroot="git://github.com/hasufell/pnmixer.git"
_gitname="pnmixer"
 
build() {
cd "${srcdir}/"
msg "Getting git sources"
 
if [ -d ${srcdir}/$_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone ${_gitroot}
fi
 
msg "Git checkout finished"
 
msg "Building package"
 
cd "${srcdir}/${_gitname}"
 
autoreconf -fi && intltoolize --copy --force --automake
./configure --prefix=/usr
make
}
 
package() {
cd "${srcdir}/${_gitname}"
make DESTDIR="$pkgdir" install
}

libnotify is a (optional) dependency, toggable by --with-libnotify

If it's not specified, then the configure script will automagically check for libnotify and compile with support if found. The user has an anonymous dependency then which is bad.
Since archlinux is not able to provide build-time configurability for the user I'd say forcing it is the best way.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.