summaryrefslogtreecommitdiff
path: root/extra/grip/PKGBUILD
blob: 22a1452211488b2eb7e7bddd71440ba3b6d05946 (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
# $Id: PKGBUILD 192310 2013-08-10 01:59:42Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=grip
pkgver=3.3.1
pkgrel=10
pkgdesc="A cd-player and ripper for the Gnome desktop"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://sourceforge.net/projects/grip/"
depends=('vte' 'curl' 'libgnomeui' 'id3lib' 'cdparanoia')
optdepends=('yelp: to display the help and notices')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
        grip-3.3.1-invalid-genre-size.patch)
sha1sums=('58ef51fbddf981a189f8b5b39774e3bd6862127d'
          '27057cb49f2abe97045912899965a9bb347612a2')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -p1 -i "${srcdir}/grip-3.3.1-invalid-genre-size.patch"
  sed -i '/[.] conftest[.]id3/s: c: ./c:' configure
}

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var  --build=$CHOST --host=$CHOST
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}