← Back to team overview

cuneiform team mailing list archive

Arch Linux PKGBUILD

 

Hi folks!

I made Arch Linux PKGBUILD (analog of a Gentoo ebuild)
for cuneiform 0.4: http://aur.archlinux.org/packages.php?ID=20060

I'm afraid to install .so to /usr/lib, so I changed CMakeLists.txt a bit
to install them to /usr/lib/cuneiform-0.4.0:

--- a/CMakeLists.txt	2008-09-01 21:47:26.000000000 +0300
+++ b/CMakeLists.txt	2008-09-18 23:43:55.000000000 +0300
@@ -29,5 +29,8 @@
     set(LIBDIR "lib")
 endif()

+set(LIBDIR "${LIBDIR}/cuneiform-${CF_VERSION}")
+set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIBDIR}")
+
 add_subdirectory(datafiles)
 add_subdirectory(cuneiform_src)

Also I found a little bug--"cmake -DLIBTYPE=STATIC ..."
does not work, because static libs cannot be installed.
For instance look at cuneiform_src/Kern/ccom/CMakeLists.txt
and you'll understand the problem:

add_library(ccom ${LIBTYPE}  # mvuets: Become STATIC
src/ccom.c
src/ccom_loc.c)

# mvuets: STATIC cannot be installed as LIBRARY:
install(TARGETS ccom LIBRARY DESTINATION ${LIBDIR})

Thanks for the GNU/Linux port! (:
(BTW, I'm a Russian-speaking if any.)

-- 
Hoc est simplicissimum!
maxim.vuets.name



Follow ups