summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 745cbde072a2da2b692fbabce91d2da7b3fac8cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Daniel T. Borelli < daltomi at aol >

pkgbase=moc_notify-git
pkgname=$pkgbase
pkgver=0.3
pkgrel=2
pkgdesc="Notifier for 'Music On Console' using libnotify."
arch=('i686' 'x86_64')
url='https://github.com/daltomi/moc_notify'
license=('GPL3')
depends=('gtk2' 'libnotify' 'moc')
makedepends=('git' 'cmake')
_gitroot=$url.git
_gitname=moc_notify

install=moc_notify-git.install
source=('moc_notify-git.install')
sha1sums=('ae6f9be60997863f215d13c0cb0bb8da9bbdd5eb')

prepare() {
  cd "$srcdir"
  msg "Connecting to GIT server...."
  git clone "$_gitroot" --branch "v.$pkgver"
}

build() {
  src_git=$srcdir/$_gitname/
  msg "Starting build..."
  cd $src_git/
  cmake -DCMAKE_BUILD_TYPE="release" . && make 
}

package() {
  install -Dm755 "$srcdir/$_gitname/moc_notify" "$pkgdir/usr/bin/moc_notify"
  install -m755 -d "$pkgdir/usr/share/moc_notify"
  install -Dm755  "$srcdir/$_gitname/onsongchange.sh" "$pkgdir/usr/share/moc_notify/"
}