summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 437b14912eaf02c7148b4c5660c491d245a83b91 (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
45
46
47
48
# Maintainer: MichaƂ Walenciak <kicer86@gmail.com>
pkgname=easyexif-git
pkgver=r34.a68a2cc
pkgrel=2
pkgdesc="Tiny ISO-compliant C++ EXIF parsing library, third-party dependency free."
arch=('i686' 'x86_64')
url="https://github.com/mayanklahiri/easyexif"
license=('BSD-2-Clause')
groups=()
depends=()
makedepends=()
optdepends=()
provides=('easyexif')
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("easyexif::git+https://github.com/mayanklahiri/easyexif.git")
noextract=()
md5sums=('SKIP')

build()
{
    cd easyexif

    sed -i -e "s/^\(CXXFLAGS.*\)/\1 -fPIC/" Makefile
    make
    ar rcs libeasyexif.a exif.o
}

package()
{
    cd easyexif

    mkdir -p $pkgdir/usr/lib
    cp libeasyexif.a $pkgdir/usr/lib

    mkdir -p $pkgdir/usr/include/easyexif
    cp exif.h $pkgdir/usr/include/easyexif/
}

pkgver()
{
  cd easyexif
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}