summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0c739b6faf8eb27b2c2bb3de841c2ea34153442 (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
# Maintainer: Alexey Ermakov <fufler[at]gmail[dot]com>

pkgname=gnupod-git
_pkgname=gnupod
pkgver=520.a3f4c9c
pkgrel=1
pkgdesc="GNUpod is a collection of tools which allow you to use your iPod under GNU/Linux and other UNIX-like operating systems."
arch=('any')
url="https://github.com/richvdh/gnupod"
license=('GPL3')
depends=('perl-digest-sha1' 'perl-xml-parser' 'perl-unicode-string' 'perl-mp3-info' 'perl-date-parse' 'perl-text-charwidth')
makedepends=('git')
source=("git+https://github.com/richvdh/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"
    echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
    cd "${srcdir}/${_pkgname}"
    autoconf
    ./configure --prefix=/usr
    make
}

package() {
    install=gnupod.install

    cd "${srcdir}/${_pkgname}"
    make DESTDIR="$pkgdir/" install
    install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}