Browse Source

Volumeicon gtk2 support added

master
mid-kid 8 years ago
parent
commit
0c151e8b67
  1. 8
      astronaut/astronaut
  2. 11
      satellites/volumeicon.sat

8
astronaut/astronaut

@ -155,7 +155,7 @@ _mksum() {
}
safe_sed() {
echo "$1" | sed 's/[[\.*^$/]/\\&/g'
echo "$1" | sed 's/[[&\.*^$/]/\\&/g'
}
download() {
@ -170,7 +170,7 @@ download() {
_msg "Downloading $filename"
[ "$3" ] && local cmd="$3" || local cmd="$cmd_download"
eval $(echo "$cmd" | sed -e "s/{dst}/'$(safe_sed "$path")'/g" -e "s@{src}@'$(safe_sed "$1")'@g")
eval $(echo "$cmd" | sed -e "s/{dst}/'$(safe_sed "$path")'/g" -e "s/{src}/'$(safe_sed "$1")'/g")
checksum="$(_mksum "$path")"
if [ "$2" -a "$checksum" != "$2" ]; then
@ -197,12 +197,12 @@ extrafile() {
dlextract() {
download "$1" "$2"
extract "$(basename $(echo "$1" | cut -d? -f1))"
extract "$(basename "$(echo "$1" | cut -d? -f1)")"
}
dlfile() {
download "$1" "$2"
getfile "$(basename $(echo "$1" | cut -d? -f1))"
getfile "$(basename "$(echo "$1" | cut -d? -f1)")"
}
option() {

11
satellites/volumeicon.sat

@ -4,11 +4,22 @@ name=volumeicon
version=0.5.1
update_url="http://nullwise.com/$name.html"
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
header_end
cd "$name-$version"
if option !gtk3; then
patch -p2 -i ../gtk2.patch
autoreconf -i
fi
sed -i -e 's/-DCOMPILEWITH_NOTIFY/ &/' ./configure
compile_configure -- --enable-notify

Loading…
Cancel
Save