summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12c88ad55412d02fe00f551c8ddb911c4f046a65 (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
41
42
43
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=exif-git
pkgver=0.6.22.r62.g0059882
pkgrel=1
pkgdesc="Command-line utility to show EXIF information"
arch=('i686' 'x86_64')
url="https://libexif.github.io/"
license=('LGPL-2.1-or-later')
depends=('glibc' 'libexif' 'popt')
makedepends=('git')
provides=("exif=$pkgver")
conflicts=('exif')
source=("git+https://github.com/libexif/exif.git")
sha256sums=('SKIP')


pkgver() {
  cd "exif"

  git describe --long --tags | sed 's/^exif-//;s/-release//;s/\([^-]*-g\)/r\1/;s/[-_]/./g'
}

build() {
  cd "exif"

  autoreconf -fi
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "exif"

  make check
}

package() {
  cd "exif"

  make DESTDIR="$pkgdir" install
}