summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ba8704d16c6d4fecfe7eee5d1716ddc375deaba (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
# Contributor:  TDY <tdy@gmx.com>
# Contributor: Dmitry N. Shilov <stormblast@land.ru>
# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=mp3val
pkgver=0.1.8
pkgrel=2
pkgdesc="A tool for validating and repairing MPEG audio streams"
arch=('i686' 'x86_64')
url="http://mp3val.sourceforge.net/"
license=('GPL')
depends=('gcc-libs')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.gz
        $pkgname-$pkgver.diff
        $pkgname.1)
md5sums=('dc8adad909d0b8734ed22029b2de2cb4'
         'a1171f5aeb95f5a06cf0d147c5d3921a'
         '0195e80d4ea32855fd15fe76e3855acd')

build() {
  cd "$srcdir/$pkgname-$pkgver-src"
  patch -Np1 -i ../$pkgname-$pkgver.diff
  make -f Makefile.linux CXXFLAGS="$CXXFLAGS"
}

package() {
  cd "$srcdir/$pkgname-$pkgver-src"
  install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm644 ../$pkgname.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
}