updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / poc / PKGBUILD
blob826d5fce2636a368d8927b0fe8d9c3bdc175d83f
1 # Contributor: 3ED <kas1987@o2.pl>
3 pkgbase=poc
4 pkgname=poc
5 true && pkgname=(poc mp3cue mp3cut mp3length pob-2250 pob-3119 pob-fec poc-2250 poc-3119 poc-fec poc-http pogg-http)
6 pkgver=0.4.1
7 pkgrel=7
8 arch=('i686' 'x86_64')
9 license=('custom')
10 depends=('glibc')
11 groups=('poc')
12 makedepends=('flex' 'bison')
13 url="http://www.bl0rg.net/software/poc/"
14 source=("http://www.bl0rg.net/software/poc/$pkgbase-$pkgver.tar.gz"
15         "patch-x86_64.diff")
16 sha256sums=('a8f8be5281b80f9bb1dd0d330ec59e608d557351f6e6ad5b3d14932f7b952d29'
17             '1f02a2d2db9bc2d00beeef4099df3276bc80e603c5b5aa45969d8d25f919c2b4')
19 DLAGENTS=('http::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u')
22 build() {
23         cd "$srcdir/$pkgbase-$pkgver"
25         [ "$CARCH" = "x86_64" ] && patch -Np0 < "$srcdir/patch-x86_64.diff"
27         make
30 package_mp3cue() {
31   _pkgname=mp3cue
32   pkgdesc="cut a MP3 file according to a CUE file"
33   install -dm755 "$pkgdir/usr/"{bin,share/man/man1}
34   install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
35   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}" "$pkgdir/usr/bin"
36   install -m 644 "$srcdir/$pkgbase-$pkgver/man/man1/${_pkgname}.1" "$pkgdir/usr/share/man/man1"
37   install -m 444 "$srcdir/$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
39 package_mp3cut() {
40   _pkgname=mp3cut
41   pkgdesc="cut and assemble MP3 files"
42   install -dm755 "$pkgdir/usr/"{bin,share/man/man1}
43   install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
44   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}" "$pkgdir/usr/bin"
45   install -m 644 "$srcdir/$pkgbase-$pkgver/man/man1/${_pkgname}.1" "$pkgdir/usr/share/man/man1"
46   install -m 444 "$srcdir/$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
48 package_mp3length() {
49   _pkgname=mp3length
50   pkgdesc="show the length of a MP3 file"
51   install -dm755 "$pkgdir/usr/"{bin,share/man/man1}
52   install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
53   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}" "$pkgdir/usr/bin"
54   install -m 644 "$srcdir/$pkgbase-$pkgver/man/man1/${_pkgname}.1" "$pkgdir/usr/share/man/man1"
55   install -m 444 "$srcdir/$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
57 package_pob-2250() {
58   _pkgname=pob-2250
59   pkgdesc="receive RTP RFC 2250 MP3 streams"
60   install -dm755 "$pkgdir/usr/"{bin,share/man/man1}
61   install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
62   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}" "$pkgdir/usr/bin"
63   install -m 644 "$srcdir/$pkgbase-$pkgver/man/man1/${_pkgname}.1" "$pkgdir/usr/share/man/man1"
64   install -m 444 "$srcdir/$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
66 package_pob-3119() {
67   _pkgname=pob-3119
68   pkgdesc="receive RTP RFC 3119 MP3 streams"
69   install -dm755 "$pkgdir/usr/"{bin,share/man/man1}
70   install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
71   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}" "$pkgdir/usr/bin"
72   install -m 644 "$srcdir/$pkgbase-$pkgver/man/man1/${_pkgname}.1" "$pkgdir/usr/share/man/man1"
73   install -m 444 "$srcdir/$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
75 package_pob-fec() {
76   _pkgname=pob-fec
77   pkgdesc="receive FEC MP3 streams"
78   install -dm755 "$pkgdir/usr/"{bin,share/man/man1}
79   install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
80   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}" "$pkgdir/usr/bin"
81   install -m 644 "$srcdir/$pkgbase-$pkgver/man/man1/${_pkgname}.1" "$pkgdir/usr/share/man/man1"
82   install -m 444 "$srcdir/$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
84 package_poc-2250() {
85   _pkgname=poc-2250
86   pkgdesc="send RTP RFC 2250 MP3 streams"
87   install -dm755 "$pkgdir/usr/"{bin,share/man/man1}
88   install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
89   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}" "$pkgdir/usr/bin"
90   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}-ploss" "$pkgdir/usr/bin"
91   install -m 644 "$srcdir/$pkgbase-$pkgver/man/man1/${_pkgname}.1" "$pkgdir/usr/share/man/man1"
92   install -m 444 "$srcdir/$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
94 package_poc-3119() {
95   _pkgname=poc-3119
96   pkgdesc="send RTP RFC 3119 MP3 streams"
97   install -dm755 "$pkgdir/usr/"{bin,share/man/man1}
98   install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
99   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}" "$pkgdir/usr/bin"
100   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}-ploss" "$pkgdir/usr/bin"
101   install -m 644 "$srcdir/$pkgbase-$pkgver/man/man1/${_pkgname}.1" "$pkgdir/usr/share/man/man1"
102   install -m 444 "$srcdir/$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
104 package_poc-fec() {
105   _pkgname=poc-fec
106   pkgdesc="send FEC MP3 streams"
107   install -dm755 "$pkgdir/usr/"{bin,share/man/man1}
108   install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
109   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}" "$pkgdir/usr/bin"
110   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}-ploss" "$pkgdir/usr/bin"
111   install -m 644 "$srcdir/$pkgbase-$pkgver/man/man1/${_pkgname}.1" "$pkgdir/usr/share/man/man1"
112   install -m 444 "$srcdir/$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
114 package_poc-http() {
115   _pkgname=poc-http
116   pkgdesc="send HTTP MP3 streams"
117   install -dm755 "$pkgdir/usr/"{bin,share/man/man1}
118   install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
119   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}" "$pkgdir/usr/bin"
120   install -m 644 "$srcdir/$pkgbase-$pkgver/man/man1/${_pkgname}.1" "$pkgdir/usr/share/man/man1"
121   install -m 444 "$srcdir/$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
123 package_pogg-http() {
124   _pkgname=pogg-http
125   pkgdesc="send HTTP OGG streams"
126   install -dm755 "$pkgdir/usr/"{bin,share/man/man1}
127   install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
128   install -m 755 "$srcdir/$pkgbase-$pkgver/${_pkgname}" "$pkgdir/usr/bin"
129   install -m 644 "$srcdir/$pkgbase-$pkgver/man/man1/${_pkgname}.1" "$pkgdir/usr/share/man/man1"
130   install -m 444 "$srcdir/$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
133 package_poc() {
134   #matapackage for backward and aur compatibility
135   depends=(mp3cue mp3cut mp3length pob-2250 pob-3119 pob-fec poc-2250 poc-3119 poc-fec poc-http pogg-http)
136   pkgdesc="a mp3 command-line editing and streaming tools (metapackage)"
139 # AUR
140 depends=('glibc')
141 pkgdesc="poc includes mp3cue, a mp3 CUE cutter, and mp3cut, a mp3 command-line editing and streaming tool"