summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a1af1cc1ee938c1d848e75080727acd0bdc6ed1 (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
44
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libexif-git
pkgver=0.6.22.r24.g977d8ff
pkgrel=1
pkgdesc="A library for parsing, editing and saving EXIF data"
arch=('i686' 'x86_64')
url="https://libexif.github.io/"
license=('LGPL')
depends=('glibc')
makedepends=('git')
provides=('libexif' 'libexif.so')
conflicts=('libexif')
options=('staticlibs')
source=("git+https://github.com/libexif/libexif.git")
sha256sums=('SKIP')


pkgver() {
  cd "libexif"

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

build() {
  cd "libexif"

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

check() {
  cd "libexif"

  make check
}

package() {
  cd "libexif"

  make DESTDIR="$pkgdir" install
}