summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f3ebfbbe79749c0321e6b59003498281e1ea2f5e (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
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: totoloco <totoloco at gmail dot com>

_pkgname=pmus
pkgname=$_pkgname-git
pkgver=0.42.r297.g3e476e9
pkgrel=1
pkgdesc="Practical Music Search is a highly configurable, ncurses-based client for MPD"
arch=('i686' 'x86_64')
url="https://ambientsound.github.io/pms/"
license=('GPL')

# boost_regex
#makedepends=('boost')
#depends=('boost-libs' 'intltool' 'libmpdclient' 'ncurses')

depends=('intltool' 'libmpdclient' 'ncurses')
provides=($_pkgname)
conflicts=($_pkgname)
source=($pkgname::git://github.com/ambientsound/pms.git)
md5sums=(SKIP)

pkgver() {
  cd $pkgname
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd $pkgname

  # boost_regex
  #sed -i 's|^./configure[ ]*$|./configure --enable-regex --prefix=/usr|' rebuild.sh

  sed -i 's|^./configure[ ]*$|./configure --prefix=/usr|' rebuild.sh
}

build() {
  cd $pkgname
  ./rebuild.sh
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir/" install
  install -dm755 "$pkgdir/usr/share/pms/examples"
  install -m644 examples/* "$pkgdir/usr/share/pms/examples"
}