summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dadc30103c0650481e559fdc60f89d999cf48880 (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
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor rtfreedman (rob<d0t>til<d0t>freedman<aT>gmail<d0t>com
# 

pkgname=easytag-git
_gitname=easytag
pkgver=2.4.3.r64.g8354e8a
pkgrel=1
pkgdesc="Utility for viewing and editing tags for most audio formats - git version"
arch=('i686' 'x86_64')
license=('GPL')
url='http://projects.gnome.org/easytag/'
depends=('id3lib' 'taglib' 'libid3tag' 'gtk3' 'libvorbis' 'flac' 'speex' 'opusfile' 'wavpack' 'yelp')
makedepends=('git' 'intltool' 'appdata-tools' 'autoconf-archive' 'yelp-tools')
## depends on building gnome help files

provides=('easytag')
conflicts=('easytag')
source=("git://git.gnome.org/easytag")
sha1sums=('SKIP')

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

prepare() {
  cd "$_gitname"
  sed "s/(\[EasyTAG\], \[\([0-9]\).\([0-9]\).\([0-9]\)\],/(\[EasyTAG\], [\1.\2.\3-$(git rev-list --count master).$(git rev-parse --short master)], /" -i configure.ac
  ./autogen.sh
}

build() {
  cd "$_gitname"
  CXXFLAGS="$CXXFLAGS -Wno-error=deprecated-declarations -Wno-error"
  # Workaround for gcc 7 
  CFLAGS="$CFLAGS -Wno-error"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$_gitname"
  make DESTDIR="${pkgdir}" install
}