Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
821 B

import 'compile/configure'
name=volumeicon
version=0.5.1
define_option 'gtk3: Build with gtk3 support'
dlextract "http://nullwise.com/files/$name/$name-$version.tar.gz" \
'48230f3a1843fa4cc4ec97d0da35c3f5'
if option !gtk3; then
dlfile 'https://aur.archlinux.org/cgit/aur.git/plain/gtk2.patch?h=volumeicon-gtk2&id=213b105a3ead8ad197d2b9c41484abc5dc6627ab' \
'eee04eeff1c5cfdd58e47c4528ee91a1'
fi
_
cd "$name-$version"
# Fix compiling with libnotify
sed -i -e 's/-DCOMPILEWITH_NOTIFY/ &/' ./configure.ac ./configure
# Remove SIGCHLD ignore that breaks libnotify
sed -i -e '/^\tsignal(SIGCHLD, SIG_IGN);$/d' src/volumeicon.c
if option !gtk3; then
patch -p2 -i ../gtk2.patch
autoreconf -fi
fi
compile_configure -- --enable-notify
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: