summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 604dc0f8735e1ff14cc2b82918ad54c6005727be (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
# 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.r155.ge7586fc
pkgrel=1
pkgdesc="Utility for viewing and editing tags for most audio formats - git version"
arch=('i686' 'x86_64' 'aarch64')
license=('GPL')
url='http://projects.gnome.org/easytag/'
depends=('id3lib' 'taglib' 'libid3tag' 'flac' 'speex' 'opusfile' 'wavpack')
makedepends=('git' 'intltool' 'appdata-tools' 'autoconf-archive' 'yelp-tools')
provides=('easytag')
conflicts=('easytag')
source=("git+https://gitlab.gnome.org/GNOME/$_gitname.git")
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
}