summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 900411b497547dcf3ef499716a00239d87f721db (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
37
38
39
40
# Maintainer: Joeny Ang <ang(dot)joeny(at)gmail(dot)com>

pkgname=nautilus-ideviceinfo-git
_gitname=nautilus-ideviceinfo
pkgver=0.1.0.74.g93b6551
pkgrel=1
pkgdesc="Show information about your iOS device"
arch=('i686' 'x86_64')
url="http://www.libimobiledevice.org/"
license=('GPL')
depends=('libimobiledevice' 'nautilus')
optdepends=('mobile-broadband-provider-info: to show mobile carrier'
            'libgpod>=0.7.90: to enable detailed audio/video information')
makedepends=('git' 'intltool' 'automake')
options=(!libtool)
source=("git://git.gnome.org/${_gitname}")
md5sums=('SKIP')

pkgver() {
  cd ${srcdir}/${_gitname}

  # Use the tag of the last commit
  git describe --always | sed 's|-|.|g'
  
  # Use current date
  # date +%Y%m%d
}

build() {
  cd ${srcdir}/${_gitname}

  ./autogen.sh --prefix=/usr
  make
}

package() {
  cd ${srcdir}/${_gitname}

  make DESTDIR=${pkgdir} install
}