1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- set -e
- program=tslib
- version=1.22
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.bz2
- fetch=https://github.com/kergoth/tslib/releases/download/${version}/$tarname
- description="
- Touchscreen access library.
- tslib consists of the library libts and tools that help you calibrate
- and use it in your environment.
- "
- homepage=https://github.com/kergoth/tslib
- license=LGPLv2.1
- docs="AUTHORS COPYING ChangeLog NEWS README* THANKS"
- docsdir="${docdir}/${pkgname}-${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} \
- --docdir=$docsdir \
- --infodir=$infodir \
- --mandir=$mandir \
- --enable-static=no \
- --enable-shared=yes \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install-strip
-
- touch "${destdir}/etc/.graft-config"
-
- if test -d "${destdir}/$infodir"
- then
- rm -f "${destdir}/${infodir}/dir"
- lzip -9 "${destdir}/${infodir}"/*
- fi
-
- 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
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|