summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2659558e5ae73bfed115e40c1e7996e09c5c377 (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
# Maintainer: nytpu <alex at nytpu dot com>

_progname=gpod-utils
pkgname=gpod-utils-git
pkgver=v1.3.1.r11.g499e8da
pkgrel=1
pkgdesc="Command line tools using libgpod to access iPod data."
url='https://github.com/whatdoineed2do/gpod-utils'
arch=('x86_64')
license=('unknown')
depends=('libgpod' 'json-c' 'glib2' 'sqlite' 'ffmpeg')
makedepends=('git')
source=('git+https://github.com/whatdoineed2do/gpod-utils.git')
sha256sums=('SKIP')
provides=("${_progname}")

pkgver() {
	cd "${srcdir}/${_progname}"
	git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cd "${srcdir}/${_progname}"
	./config.sh
	./configure
}

build() {
	cd "${srcdir}/${_progname}"
	make
}

package() {
	cd "${srcdir}/${_progname}"
	make DESTDIR="${pkgdir}" prefix="/usr" install
}