summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0562264e1f1b6fbc47688302f2b31f7d0ed31329 (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
# Maintainer: Simon Legner <Simon.Legner@gmail.com>
# Maintainer: Testuser_01 <arch@nico-siebler.de>
# Contributor: Testuser_01 <arch@nico-siebler.de>
# Contributor: David H. Bronke <whitelynx at gmail.com>
pkgname='fastoggenc'
pkgver=0.1.4
pkgrel=8
pkgdesc="A parallelized Python script which converts MP3, M4A, WMA, WAV into OGG Vorbis"
arch=('any')
url="https://sourceforge.net/projects/fastoggenc/"
depends=(mplayer mpg123 lame flac faad2 vorbis-tools python2-mutagen)
optdepends=(
  'musepack-tools: for decoding Musepack files'
  'wavpack: for decoding Wavepack files'
  'cdparanoia: for reading CDs'
  'cdrkit: for reading CDs'
)
license=('GPL3')
source=("https://downloads.sourceforge.net/project/fastoggenc/$pkgver/$pkgname-$pkgver.tar.gz" shutil.patch)

prepare() {
  sed -e 's@#!/usr/bin/python@#!/usr/bin/python2@' -i "${pkgname}/${pkgname}" || return 1
  cd "${pkgname}"
  patch < "$srcdir/shutil.patch"
}

package() {
  mkdir -p "${pkgdir}/usr/bin/" || return 1
  install -m755 -D "${pkgname}/${pkgname}" "${pkgdir}/usr/bin/" || return 1
}

sha256sums=('d781b558c7848f27a61362fd7abcd4065e1feb711916292d0e8e828e2a6e2a12'
            '9e0d8b2d4df6d4186241ee4a57415291d4a20cbca5e0a1f452d40a84653b2e2d')