# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=nemo-theme-glacier
pkgver=0.2.1
pkgrel=2
pkgdesc="Nemo Mobile Glacier UI theme"
arch=('any')
url="https://github.com/nemomobile-ux/nemo-theme-glacier"
license=('LGPL')
source=("https://github.com/nemomobile-ux/nemo-theme-glacier/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('23ca57b826938b76f39d45f39f71a834ace7a7366b171490040fbbb2f4f213203bcf30700aa0d47c5610ed55625746eed2fc4310d1964327f2b056cef434a8c5')

package() {
  cd nemo-theme-glacier-$pkgver
  install -Dm644 icons/fontawesome/* -t "$pkgdir"/usr/share/themes/glacier/fontawesome/icons/
  install -Dm644 icons/meegotouch/* -t "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/
  install -Dm644 index.theme -t "$pkgdir"/usr/share/themes/glacier/

  install -Dm644 sounds/glacier/stereo/* -t "$pkgdir"/usr/share/sounds/glacier/stereo/

  ln -s icon-app-terminal.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-l-terminal.png
  ln -s icon-app-settings.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-l-settings.png
  ln -s icon-app-screenshot.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-screenshot.png
  ln -s icon-app-browser.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-browser.png
  ln -s icon-app-calculator.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-calculator.png
  ln -s icon-app-calendar.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-calendar.png
  ln -s icon-app-camera.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-camera.png
  ln -s icon-app-clock.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-clock.png
  ln -s icon-app-email.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-email.png
  ln -s icon-app-gallery.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-gallery.png
  ln -s icon-app-music.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-mediaplayer.png
  ln -s icon-app-conversation.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-messaging.png
  ln -s icon-app-notes.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-notes.png
  ln -s icon-app-documents.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-office.png
  ln -s icon-app-contacts.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-people.png
  ln -s icon-app-dialer.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-phone.png
  ln -s icon-app-settings.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-settings.png
  ln -s icon-app-terminal.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-shell.png
  ln -s icon-app-packages.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-store.png
  ln -s icon-app-weather.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-weather.png
}
