123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- set -e
- program=libart-lgpl-trinity
- version=14.0.9
- release=1
- pkgcategory=tde
- tarname=${program}-${version}.tar.xz
- fetch=https://mirror.ppa.trinitydesktop.org/trinity/releases/R${version}/main/dependencies/$tarname
- description="
- LGPL version of the libart library.
- This is the LGPL'd component of libart. All functions needed for
- running the Gnome canvas, and for printing support, will be going in
- here. The GPL'd component will be getting various enhanced functions
- for specific applications.
- "
- homepage=https://www.trinitydesktop.org/
- license=LGPLv2+
- docs="AUTHORS COPYING ChangeLog NEWS README"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- mkdir BUILD
- cd BUILD
- cmake \
- -DCMAKE_C_FLAGS_RELEASE:STRING="$QICFLAGS" \
- -DCMAKE_CXX_FLAGS_RELEASE:STRING="$QICXXFLAGS" \
- -DCMAKE_SHARED_LINKER_FLAGS:STRING="$QILDFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_SUFFIX=${libSuffix} \
- -DCMAKE_VERBOSE_MAKEFILE=ON \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_SKIP_INSTALL_RPATH=YES \
- -DWITH_ALL_OPTIONS=ON \
- -G Ninja ..
- ninja -j${jobs}
- DESTDIR="$destdir" ninja -j${jobs} 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
- cd ..
-
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}"
- }
|