Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: TDY <tdy@gmx.com>
- # Contributor: Dmitry N. Shilov <stormblast@land.ru>
- pkgname=mp3val
- pkgver=0.1.8
- pkgrel=1
- pkgdesc="A tool for validating and repairing MPEG audio streams"
- arch=('i686' 'x86_64')
- url="http://mp3val.sourceforge.net/"
- license=('GPL')
- depends=('gcc-libs')
- makedeps=('hd2u')
- source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.gz
- $pkgname.1)
- md5sums=('dc8adad909d0b8734ed22029b2de2cb4'
- '0195e80d4ea32855fd15fe76e3855acd')
- build() {
- cd "$srcdir/$pkgname-$pkgver-src"
- for i in *.cpp *.h; do
- dos2unix $i
- done
- patch -p0 << EOF
- *** crossapi.cpp 2012-07-16 00:47:01.600155402 +0800
- --- crossapi2.cpp 2012-07-16 00:52:38.786827844 +0800
- ***************
- *** 177,182 ****
- --- 177,185 ----
- #include <errno.h>
- #include <math.h>
- #include <utime.h>
- + #include <cstring>
- + #include <cstdlib>
- + #include <cmath>
- #define TMPBUFSIZE 8192
- ***************
- *** 241,247 ****
- //Moving failed due to different logical drives of source and destination. Let's copy:
- id=open(szOldName,O_RDONLY);
- if(id==-1) return 0;
- ! od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC);
- if(od==-1) {
- close(id);
- return 0;
- --- 244,250 ----
- //Moving failed due to different logical drives of source and destination. Let's copy:
- id=open(szOldName,O_RDONLY);
- if(id==-1) return 0;
- ! od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
- if(od==-1) {
- close(id);
- return 0;
- EOF
- make -f Makefile.linux CXXFLAGS="$CXXFLAGS" || return 1
- }
- package() {
- cd "$srcdir/$pkgname-$pkgver-src"
- install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
- install -Dm644 ../$pkgname.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement