added coverlovin

This commit is contained in:
Florian Dejonckheere 2013-05-24 12:39:20 +02:00
commit b604e0a458
2 changed files with 44 additions and 0 deletions

16
.SRCINFO Normal file
View file

@ -0,0 +1,16 @@
pkgbase = coverlovin
pkgdesc = CLI recursive directory album art downloader written in Python
pkgver = 2.0
pkgrel = 1
url = https://launchpad.net/coverlovin
arch = any
license = GPL3
depends = python2
depends = python2-simplejson
provides = coverlovin
replaces = coverlovin
source = https://launchpad.net/coverlovin/trunk/2.0/+download/CoverLovin-2.0.tar.gz
md5sums = 0d02649097e05fde2da4a157c65e8720
pkgname = coverlovin

28
PKGBUILD Normal file
View file

@ -0,0 +1,28 @@
# Maintainer: Florian Dejonckheere <florian@floriandejonckheere.be>
# Contributor: Ray Griffin <rorgoroth@googlemail.com>
pkgname=coverlovin
pkgver=2.0
pkgrel=1
pkgdesc="CLI recursive directory album art downloader written in Python"
arch=('any')
url="https://launchpad.net/coverlovin"
license=('GPL3')
depends=('python2' 'python2-simplejson')
provides=('coverlovin')
replaces=('coverlovin')
source=("https://launchpad.net/coverlovin/trunk/${pkgver}/+download/CoverLovin-${pkgver}.tar.gz")
md5sums=('0d02649097e05fde2da4a157c65e8720')
prepare(){
cd ${srcdir}/${pkgname}
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' ${pkgname}.py
}
package(){
cd ${srcdir}/${pkgname}
mkdir -p ${pkgdir}/usr/share/coverlovin ${pkgdir}/usr/bin
install -Dm755 *.py ${pkgdir}/usr/share/${pkgname}/
mkdir -p ${pkgdir}/usr/bin
ln -s "${pkgdir}/usr/share/${pkgname}/${pkgname}.py" "${pkgdir}/usr/bin/coverlovin"
}