blob: 2d1e48a3ce5a6ec4088698d4054933eae47a0b36 (
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
|
# $Id: PKGBUILD 57181 2011-10-23 15:35:20Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=clamz
pkgver=0.4
pkgrel=4
pkgdesc="Command-line program to download MP3 files from Amazon.com's music store."
arch=('i686' 'x86_64')
url='http://code.google.com/p/clamz/'
license=('GPL3')
depends=('libgcrypt' 'curl' 'expat' 'shared-mime-info' 'desktop-file-utils')
install='clamz.install'
source=("http://clamz.googlecode.com/files/clamz-${pkgver}.tar.gz"
'unencrypted-amz.patch')
md5sums=('ab7661340ee27d206f36064cfbd5bfa4'
'603ef334d297614edabbd1bf5bfe585d')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Fix issue with update-mime-database
sed -i 's|$(UPDATE_DESKTOP_DATABASE)\ $(DESTDIR)$(applications_dir)||' Makefile.in
sed -i 's|$(UPDATE_MIME_DATABASE)\ $(DESTDIR)$(mime_dir)||' Makefile.in
# Fix download from Amazon Cloud Player (FS#26532, FS#26577).
patch -Np1 -i "${srcdir}/unencrypted-amz.patch"
./configure --prefix=/usr/
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|