summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 27374add8fa6bfb87c4e0fa2401986a31de7f323 (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=r41.cd994a3
pkgrel=1
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)"
}