File PKGBUILD of Package obs-service-download_files

pkgname=obs-service-download_files
pkgver=0.9.2
pkgrel=0
pkgdesc="An OBS source service: download files"
arch=(any)
license=(GPL-2.0+)
url=https://github.com/openSUSE/$pkgname
source=($pkgname-$pkgver.tar.gz)
sha256sums=('SKIP')
depends=('build>=2012.08.24' 'curl' 'diffutils' 'perl-yaml-libyaml')
checkdepends=('perl-file-type' 'perl-http-server-simple' 'perl-path-class')
backup=('etc/obs/services/download_files')

package() {
    cd "$pkgname-$pkgver"
    make DESTDIR=$pkgdir install
    mkdir -p $pkgdir/var/cache/obs/download_files/file{,name}
}

check() {
    cd "$pkgname-$pkgver"
    make VERBOSE=1 test
}
openSUSE Build Service is sponsored by