commit d0fb9b7bef943e100e6e9c44f016ff32046aaca9 Author: Manuel Hüsers Date: Thu Aug 13 22:26:59 2015 +0200 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..9ae90c7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = mint-artwork-cinnamon + pkgdesc = Default artwork for the Cinnamon edition of Linux Mint. + pkgver = 4.9 + pkgrel = 1 + url = http://linuxmint.com + arch = any + license = GPL + depends = cinnamon + source = http://packages.linuxmint.com/pool/main/m/mint-artwork-cinnamon/mint-artwork-cinnamon_4.9.tar.gz + sha256sums = 4523f3043977f352309043350bfafc33d07dd3ac9e794e75c481e3733ac7a28c + +pkgname = cinnamon-sound-effects + pkgdesc = Sound effects from mint-artwork-cinnamon package for the Cinnamon desktop. + install = cinnamon-sound-effects.install + optdepends = mint-sounds: Linux Mint system sounds + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..67dd6f9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Manuel Hüsers +# Contributor: Manuel Hüsers + +pkgbase=mint-artwork-cinnamon +pkgname=cinnamon-sound-effects +pkgver=4.9 +pkgrel=1 +pkgdesc='Default artwork for the Cinnamon edition of Linux Mint.' +arch=('any') +license=('GPL') +depends=('cinnamon') +url="http://linuxmint.com" +source=("http://packages.linuxmint.com/pool/main/m/${pkgbase}/${pkgbase}_${pkgver}.tar.gz") +sha256sums=('4523f3043977f352309043350bfafc33d07dd3ac9e794e75c481e3733ac7a28c') + +package_cinnamon-sound-effects() { + pkgdesc="Sound effects from ${pkgbase} package for the Cinnamon desktop." + install="${pkgname}.install" + optdepends=('mint-sounds: Linux Mint system sounds') + + cd "${srcdir}/${pkgbase}" + + install -d "${pkgdir}/usr/share/${pkgbase}/sounds" + for file in ./usr/share/${pkgbase}/sounds/*; do + install -Dm644 "${file}" "${pkgdir}/usr/share/${pkgbase}/sounds/" + done + + install -Dm644 "${startdir}/${pkgname}.gschema.override" "${pkgdir}/usr/share/glib-2.0/schemas/${pkgname}.gschema.override" +} diff --git a/cinnamon-sound-effects.gschema.override b/cinnamon-sound-effects.gschema.override new file mode 100644 index 0000000..5183e3b --- /dev/null +++ b/cinnamon-sound-effects.gschema.override @@ -0,0 +1,28 @@ +[org.cinnamon.sounds] +login-enabled=true +login-file="/usr/share/mint-artwork-cinnamon/sounds/login.oga" +logout-enabled=true +logout-file="/usr/share/mint-artwork-cinnamon/sounds/logout.ogg" +switch-enabled=true +switch-file="/usr/share/mint-artwork-cinnamon/sounds/switch.oga" +close-enabled=false +close-file="/usr/share/mint-artwork-cinnamon/sounds/close.oga" +map-enabled=false +map-file="/usr/share/mint-artwork-cinnamon/sounds/map.oga" +minimize-enabled=false +minimize-file="/usr/share/mint-artwork-cinnamon/sounds/minimize.oga" +maximize-enabled=false +maximize-file="/usr/share/mint-artwork-cinnamon/sounds/maximize.oga" +unmaximize-enabled=false +unmaximize-file="/usr/share/mint-artwork-cinnamon/sounds/unmaximize.oga" +tile-enabled=true +tile-file="/usr/share/mint-artwork-cinnamon/sounds/tile.oga" +plug-enabled=true +plug-file="/usr/share/mint-artwork-cinnamon/sounds/plug.oga" +unplug-enabled=true +unplug-file="/usr/share/mint-artwork-cinnamon/sounds/unplug.oga" + +[org.cinnamon.desktop.sound] +volume-sound-enabled=true +volume-sound-file="/usr/share/mint-artwork-cinnamon/sounds/volume.oga" + diff --git a/cinnamon-sound-effects.install b/cinnamon-sound-effects.install new file mode 100644 index 0000000..895a163 --- /dev/null +++ b/cinnamon-sound-effects.install @@ -0,0 +1,31 @@ +# Colored makepkg-like functions +msg_blue() { + printf "${blue}==>${bold} $1${all_off}\n" +} + +note() { + printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n" +} + +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +yellow="${bold}$(tput setaf 3)" +blue="${bold}$(tput setaf 4)" + +_update() { + msg_blue 'Updating GSettings schemas...' + glib-compile-schemas '/usr/share/glib-2.0/schemas/' +} + +post_install() { + _update + note 'If sounds do not work immediately consider restarting Cinnamon' +} + +post_upgrade() { + _update +} + +post_remove() { + _update +}