diff options
-rw-r--r-- | .SRCINFO | 38 | ||||
-rw-r--r-- | install.sh | 77 |
2 files changed, 29 insertions, 86 deletions
@@ -1,15 +1,27 @@ -pkgbase = pkgbase - pkgdesc = Slovak -> English dictionary for dictd et al. from Freedict.org - pkgver = 0.2 +pkgbase = soundy-git + pkgdesc = Simple GTK client to control your Bose SoundTouch speaker - Development version + pkgver = r223.6f7aca3 pkgrel = 1 - url = https://freedict.org/ - install = install.sh - arch = any - license = GPL - makedepends = dictd - makedepends = freedict-tools - optdepends = dictd: dict client and server - source = https://download.freedict.org/dictionaries/slk-eng/0.2.1/freedict-slk-eng-0.2.1.src.tar.xz - sha512sums = ba7669020a12f64f7d2e2b6dfa90f1376df4a2fe764273bdb06f1e04998ee6dac9584b47f20f8e14cbaae5bf7271dd221032bcc34bd1ff7c93a93cf9de4429ac + url = https://github.com/syfds/soundy + arch = i686 + arch = x86_64 + arch = arm + arch = armv6h + arch = armv7h + arch = aarch64 + license = GPL-3.0 + makedepends = git + makedepends = meson + depends = gtk3 + depends = granite + depends = glib2 + depends = libsoup + depends = libxml2 + depends = avahi + provides = soundy=r223.6f7aca3 + conflicts = soundy + options = debug + source = git+https://github.com/syfds/soundy.git + sha256sums = SKIP -pkgname = dict-freedict-slk-eng +pkgname = soundy-git diff --git a/install.sh b/install.sh index ddc8827df6df..ce766a52c1bc 100644 --- a/install.sh +++ b/install.sh @@ -1,78 +1,9 @@ -basename=slk-eng -pkgname=dict-freedict-$basename -dictd_conf=/etc/dict/dictd.conf -datadir=/usr/share/dictd -conf="database $basename { - data $datadir/$basename.dict.dz - index $datadir/$basename.index -}" - +basename=soundy-git post_install() -{ - echo - if pacman -Qq dictd > /dev/null 2>&1 - then - if grep -q "^database *$basename" "$dictd_conf" - then - echo "$pkgname already configured in $dictd_conf" - else - echo "Adding configuration for $pkgname to $dictd_conf" - echo "$conf" >> "$dictd_conf" - fi - - if systemctl -q is-active dictd.service - then - echo "Restarting dictd service in order to" \ - "use the new dictionary database" - systemctl restart dictd.service - else - echo "Starting dictd service in order to" \ - "use the new dictionary database" - systemctl start dictd.service - fi - else - echo "dictd does not appear to be installed." - echo "In order to use this database you should either" \ - "install dictd or alternatively" \ - "another dict server and configure it on your own." - fi - echo -} +{} post_upgrade() -{ - if pacman -Qq dictd > /dev/null 2>&1 && \ - systemctl -q is-active dictd.service - then - echo -e "\nRestarting dictd service in order to" \ - "use the updated dictionary database" - systemctl restart dictd.service - fi -} +{} post_remove() -{ - if pacman -Qq dictd > /dev/null 2>&1 - then - current_conf="$(grep -A 3 "^database *$basename" "$dictd_conf")" - if test -n "$current_conf" - then - echo - if test "$current_conf" = "$conf" - then - echo "Removing configuration for $pkgname from $dictd_conf" - sed -i "/database $basename {/,/}/d" "$dictd_conf" - else - echo "User created / modified configuration" \ - "for $pkgname in $dictd_conf is left untouched." - fi - fi - - if systemctl -q is-active dictd.service - then - echo "Restarting dictd service in order to" \ - "stop using the removed dictionary database" - systemctl restart dictd.service - fi - fi -} +{} |