From bd88b45d589bab7fc247e9e1a67ce2daded0c72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20H=C3=BCsers?= Date: Thu, 13 Aug 2015 22:28:01 +0200 Subject: [PATCH] Initial commit --- .SRCINFO | 14 ++++++++++++++ PKGBUILD | 23 +++++++++++++++++++++++ mint-sounds.gschema.override | 5 +++++ mint-sounds.install | 30 ++++++++++++++++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 mint-sounds.gschema.override create mode 100644 mint-sounds.install diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..43c946d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = mint-artwork-common + pkgdesc = Common artwork used in Linux Mint. + pkgver = 1.8.7 + pkgrel = 1 + url = http://linuxmint.com + arch = any + license = GPL + source = http://packages.linuxmint.com/pool/main/m/mint-artwork-common/mint-artwork-common_1.8.7.tar.gz + sha256sums = 8799797e533abae36602254568a0496a5bdf04346455ad642826a8631af23143 + +pkgname = mint-sounds + pkgdesc = Linux Mint system sounds from mint-artwork-common package. + install = mint-sounds.install + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9b19fd5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Manuel Hüsers +# Contributor: Manuel Hüsers + +pkgbase=mint-artwork-common +pkgname=mint-sounds +pkgver=1.8.7 +pkgrel=1 +pkgdesc='Common artwork used in Linux Mint.' +arch=('any') +license=('GPL') +url="http://linuxmint.com" +source=("http://packages.linuxmint.com/pool/main/m/${pkgbase}/${pkgbase}_${pkgver}.tar.gz") +sha256sums=('8799797e533abae36602254568a0496a5bdf04346455ad642826a8631af23143') + +package_mint-sounds() { + pkgdesc="Linux Mint system sounds from ${pkgbase} package." + install="${pkgname}.install" + + cd "${srcdir}/${pkgbase}-${pkgver}" + install -d "${pkgdir}/usr/share/sounds/LinuxMint" + find "./usr/share/sounds/LinuxMint" -type f -exec install -Dm644 {} "${pkgdir}/usr/share/sounds/LinuxMint/" \; + install -Dm644 "${startdir}/${pkgname}.gschema.override" "${pkgdir}/usr/share/glib-2.0/schemas/${pkgname}.gschema.override" +} diff --git a/mint-sounds.gschema.override b/mint-sounds.gschema.override new file mode 100644 index 0000000..403bf43 --- /dev/null +++ b/mint-sounds.gschema.override @@ -0,0 +1,5 @@ +[org.cinnamon.desktop.sound] +theme-name="LinuxMint" +event-sounds=false +input-feedback-sounds=false + diff --git a/mint-sounds.install b/mint-sounds.install new file mode 100644 index 0000000..a8647e0 --- /dev/null +++ b/mint-sounds.install @@ -0,0 +1,30 @@ +# 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 +} + +post_upgrade() { + _update +} + +post_remove() { + _update +}