public
Created

dunst PKGBUILD

  • 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 47 48 49 50 51
# Maintainer: Army <uli armbruster who uses the google mail service>
 
_pkgname=dunst
pkgname=${_pkgname}-git
pkgver=20120613
pkgrel=1
pkgdesc="dmenu-ish notification system "
arch=(i686 x86_64)
url="https://github.com/knopwob/dunst"
license=(MIT)
depends=(dbus-core libxinerama)
makedepends=('git' 'perl' 'iniparser')
optdepends=('libnotify: dunst is able to listen to notifications from libnotify')
provides=(${_pkgname} notification-daemon)
conflicts=(${_pkgname})
 
_gitroot="https://github.com/knopwob/dunst.git"
_gitname="${_pkgname}"
 
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
 
if [ -d ${_gitname} ] ; then
cd ${_gitname} && git pull origin
msg "The local files are updated."
else
git clone ${_gitroot} ${_gitname}
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
 
rm -rf "${srcdir}/${_gitname}-build"
cp -a "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
cd "${srcdir}/${_gitname}-build"
 
 
sed -i \
-e 's/^CPPFLAGS =/CPPFLAGS +=/g' \
-e 's/^CFLAGS =/CFLAGS +=/g' \
-e 's/^LDFLAGS =/LDFLAGS +=/g' \
config.mk
 
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
 
package() {
cd "${srcdir}/${_gitname}-build"
make PREFIX=${pkgdir}/usr install
install -Dm644 "${srcdir}/dunst-build/LICENSE.dmenu" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.