summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ef9d5691677600d2cb92f1791eb65a4e80ca4e7 (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
# Maintainer: Filip <fila pruda com>
pkgname=mp3directcut
pkgver=2.24
_downver=224
pkgrel=1
pkgdesc="fast audio editor and recorder for mp3 with no need to decompress"
arch=('i686' 'x86_64')
url="http://mpesch3.de1.cc/mp3dc.html"
license=('FREEWARE')
[ "$CARCH" = "i686" ] && depends=(wine mpg123)
[ "$CARCH" = "x86_64" ] && depends=(wine lib32-mpg123)

[ "$CARCH" = "i686" ] && optdepends=('libpulse: PulseAudio plugin')
[ "$CARCH" = "x86_64" ] && optdepends=('lib32-libpulse: PulseAudio plugin')

makedepends=()
source=(mp3directcut mp3directcut.desktop mp3dcicon.png http://ftp.elf.stuba.sk/pub/pc/sound/mp3dc$_downver.exe)
md5sums=(
	'31de44159649baddf5c7b6936b87133f' '910ada5caa9b0ea67a88bfc7ffe9c237'
	'81a5bbd5789094b4bf5822791826c162' '17ba0eda4320095a14bc9d0f2eb9500b')

package() {

  #bin
  install -Dm755 "mp3directcut" "$pkgdir/usr/bin/mp3directcut"
  
  #app
  install -d -m755 "$pkgdir/usr/share/mp3directcut"
  install -m644 "mp3DirectCut.exe" "$pkgdir/usr/share/mp3directcut"
  
  install -d -m755 "$pkgdir/usr/share/mp3directcut/Languages"
  cp -r "Languages/." "$pkgdir/usr/share/mp3directcut/Languages"
  
  #.desktop icon
  install -Dm644 "mp3directcut.desktop" "$pkgdir/usr/share/applications/mp3directcut.desktop"
  install -Dm644 "mp3dcicon.png" "$pkgdir/usr/share/pixmaps/mp3directcut.png"
  
  #docs
  install -d -m755 "$pkgdir/usr/share/doc/mp3directcut"
  install -m644 *.txt *.htm "$pkgdir/usr/share/doc/mp3directcut"
  
}