From 0d95d7ea6ee1f0a28a6687e61e67adc35a2e8a59 Mon Sep 17 00:00:00 2001 From: bougyman Date: Wed, 8 Apr 2015 08:08:54 -0500 Subject: [PATCH] bglibs: split -devel package and change directory structure --- srcpkgs/bglibs-devel | 1 + srcpkgs/bglibs/template | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) create mode 120000 srcpkgs/bglibs-devel diff --git a/srcpkgs/bglibs-devel b/srcpkgs/bglibs-devel new file mode 120000 index 00000000000..d78591ef7f9 --- /dev/null +++ b/srcpkgs/bglibs-devel @@ -0,0 +1 @@ +bglibs \ No newline at end of file diff --git a/srcpkgs/bglibs/template b/srcpkgs/bglibs/template index 617eea9706c..a2ec7b0ab8e 100644 --- a/srcpkgs/bglibs/template +++ b/srcpkgs/bglibs/template @@ -1,7 +1,7 @@ # Template file for 'bglibs' pkgname=bglibs version=2.03 -revision=1 +revision=2 nocross=yes hostmakedepends="libtool perl" short_desc="A collection of libraries by Bruce Guenter" @@ -17,17 +17,26 @@ pre_build() { } do_build() { - echo "/usr/lib/bglibs/include" > conf-include - echo "/usr/lib/bglibs/lib" > conf-lib + echo "/usr/include" > conf-include + echo "/usr/lib" > conf-lib echo "/usr/bin" > conf-bin echo "/usr/share/man" > conf-man make } do_install() { - vmkdir usr/lib/bglibs install_prefix="${DESTDIR}" make install find "${DESTDIR}"/usr/lib -name "*.a" -exec chmod 0644 {} \; vdoc README vlicense COPYING } + +bglibs-devel_package() { + depends="bglibs>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include/bglibs + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +}