From 8a81f5273e204019fed45045b6f9a2535e30b926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Tue, 31 Jul 2018 18:25:20 +0200 Subject: [PATCH] New package: shapelib-1.4.1 --- common/shlibs | 1 + srcpkgs/shapelib-devel | 1 + srcpkgs/shapelib-tools | 1 + srcpkgs/shapelib/patches/libdir.patch | 21 ++++++++++++++++++++ srcpkgs/shapelib/template | 28 +++++++++++++++++++++++++++ 5 files changed, 52 insertions(+) create mode 120000 srcpkgs/shapelib-devel create mode 120000 srcpkgs/shapelib-tools create mode 100644 srcpkgs/shapelib/patches/libdir.patch create mode 100644 srcpkgs/shapelib/template diff --git a/common/shlibs b/common/shlibs index c72643aad7..affb71fe74 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3387,3 +3387,4 @@ libaom.so.0 libaom-1.0.0_1 libre.so re-0.5.8_1 libspandsp.so.2 spandsp-0.0.6_1 librem.so rem-0.5.3_1 +libshp.so.1 shapelib-1.4.1_1 diff --git a/srcpkgs/shapelib-devel b/srcpkgs/shapelib-devel new file mode 120000 index 0000000000..81f51d5cf2 --- /dev/null +++ b/srcpkgs/shapelib-devel @@ -0,0 +1 @@ +shapelib \ No newline at end of file diff --git a/srcpkgs/shapelib-tools b/srcpkgs/shapelib-tools new file mode 120000 index 0000000000..81f51d5cf2 --- /dev/null +++ b/srcpkgs/shapelib-tools @@ -0,0 +1 @@ +shapelib \ No newline at end of file diff --git a/srcpkgs/shapelib/patches/libdir.patch b/srcpkgs/shapelib/patches/libdir.patch new file mode 100644 index 0000000000..4701bb8d97 --- /dev/null +++ b/srcpkgs/shapelib/patches/libdir.patch @@ -0,0 +1,21 @@ +diff --git CMakeLists.txt CMakeLists.txt +index c3ef935..4b0e65c 100644 +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -53,11 +53,11 @@ set( + CACHE PATH "install location for user executables" + ) + +-set( +- CMAKE_INSTALL_LIBDIR +- ${CMAKE_INSTALL_PREFIX}/lib +- CACHE PATH "install location for object code libraries" +- ) ++# set( ++# CMAKE_INSTALL_LIBDIR ++# ${CMAKE_INSTALL_PREFIX}/lib ++# CACHE PATH "install location for object code libraries" ++# ) + + set( + CMAKE_INSTALL_INCLUDEDIR diff --git a/srcpkgs/shapelib/template b/srcpkgs/shapelib/template new file mode 100644 index 0000000000..01000da946 --- /dev/null +++ b/srcpkgs/shapelib/template @@ -0,0 +1,28 @@ +# Template file for 'shapelib' +pkgname=shapelib +version=1.4.1 +revision=1 +build_style=cmake +short_desc="Library for reading and writing of ESRI Shapefiles" +maintainer="Piotr Wójcik " +license="LGPL-2.0-only" +homepage="http://shapelib.maptools.org/" +distfiles="http://download.osgeo.org/shapelib/shapelib-${version}.tar.gz" +checksum=a4c94817365761a3a4c21bb3ca1c680a6bdfd3edd61df9fdd291d3e7645923b3 + +shapelib-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.so" + vmove usr/share/shp + } +} + +shapelib-tools_package() { + short_desc+=" - tools" + pkg_install() { + vmove usr/bin + } +}