PKGBUILD 912 Bytes
Newer Older
1
# Contributions from Arch: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=clamz
2 3 4

pkgname=clamz
pkgver=0.5
5
pkgrel=3
6 7 8 9 10 11
pkgdesc="Command-line program to download MP3 files from Amazon.com's music store."
arch=('x86_64')
url='http://code.google.com/p/clamz/'
license=('GPL3')
depends=('libgcrypt' 'curl' 'expat' 'shared-mime-info' 'desktop-file-utils')
install='clamz.install'
12
source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/clamz/clamz-${pkgver}.tar.gz")
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
md5sums=('84543c9346b285bdc218879e241941a8')

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

	./configure --prefix=/usr/
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
29
}