1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- set -e
- program=libexif
- version=0.6.24
- release=1
- pkgcategory=x-libs
- tarname=${program}-${version}.tar.bz2
- fetch=https://github.com/libexif/libexif/releases/download/v${version}/$tarname
- description="
- Library for parsing, editing, and saving EXIF data.
- libexif is a library for parsing, editing, and saving EXIF data. It is
- intended to replace lots of redundant implementations in command-line
- utilities and programs with GUIs.
- "
- homepage=https://libexif.github.io
- license=LGPLv2.1
- docs="";
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CPPFLAGS="$QICPPFLAGS" \
- CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --enable-static=no \
- --enable-shared=yes \
- --build="$(gcc -dumpmachine)"
-
- make -j${jobs} docdir=$docsdir V=1
- make -j${jobs} docdir=$docsdir DESTDIR="$destdir" install
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- rm -f "${destdir}/${docsdir}/ABOUT-NLS"
- }
|