diff --git a/templates/glib-devel b/templates/glib-devel new file mode 120000 index 00000000000..5ca6c3ba538 --- /dev/null +++ b/templates/glib-devel @@ -0,0 +1 @@ +glib \ No newline at end of file diff --git a/templates/glib/depends b/templates/glib/depends new file mode 100644 index 00000000000..5eecb8d889b --- /dev/null +++ b/templates/glib/depends @@ -0,0 +1,2 @@ +abi_depends=2.18.0 +api_depends=${abi_depends} diff --git a/templates/glib/devel.template b/templates/glib/devel.template new file mode 100644 index 00000000000..8f01edf6f5a --- /dev/null +++ b/templates/glib/devel.template @@ -0,0 +1,28 @@ +# Template file for 'glib-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glib + +do_install() +{ + local destdir=${XBPS_DESTDIR}/${pkgname}-${version} + local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version} + + mkdir -p ${destdir}/usr/lib + mkdir -p ${destdir}/usr/share + + mv ${origdir}/usr/bin ${destdir}/usr + mv ${origdir}/usr/include ${destdir}/usr + mv ${origdir}/usr/lib/glib-2.0 ${destdir}/usr/lib + mv ${origdir}/usr/lib/*.*a ${destdir}/usr/lib + mv ${origdir}/usr/lib/*.so ${destdir}/usr/lib + mv ${origdir}/usr/lib/pkgconfig ${destdir}/usr/lib + mv ${origdir}/usr/share/man ${destdir}/usr/share + mv ${origdir}/usr/share/gtk-doc ${destdir}/usr/share + mv ${origdir}/usr/share/aclocal ${destdir}/usr/share + mv ${origdir}/usr/share/glib-2.0 ${destdir}/usr/share +} diff --git a/templates/glib/template b/templates/glib/template index c9f40b36f78..e7f7320192e 100644 --- a/templates/glib/template +++ b/templates/glib/template @@ -1,5 +1,6 @@ # Template build file for 'glib' pkgname=glib +sourcepkg=glib version=2.18.2 distfiles=" http://ftp.gnome.org/pub/gnome/sources/glib/2.18/$pkgname-$version.tar.bz2" @@ -16,5 +17,9 @@ long_desc=" as trees, hashes, lists and strings. It is a useful general purpose C library used by projects such as GTK+, GIMP and GNOME." -build_depends="pcre-7.8 pkg-config-0.23 gettext-0.17" -run_depends="glibc-2.8 pcre-7.8" +subpackages="devel" + +Add_dependency full glibc +Add_dependency full pcre +Add_dependency build gettext +Add_dependency build pkg-config diff --git a/templates/irssi-devel b/templates/irssi-devel new file mode 120000 index 00000000000..12532cbc9b1 --- /dev/null +++ b/templates/irssi-devel @@ -0,0 +1 @@ +irssi \ No newline at end of file diff --git a/templates/irssi/devel.template b/templates/irssi/devel.template new file mode 100644 index 00000000000..feb06a8fcf5 --- /dev/null +++ b/templates/irssi/devel.template @@ -0,0 +1,22 @@ +# Template file for 'irssi-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run irssi + +do_install() +{ + local destdir=${XBPS_DESTDIR}/${pkgname}-${version} + local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version} + + mkdir -p ${destdir}/usr/lib/irssi/modules + + mv ${origdir}/usr/include ${destdir}/usr + mv ${origdir}/usr/lib/irssi/modules/*.*a \ + ${destdir}/usr/lib/irssi/modules + mv ${origdir}/usr/lib/irssi/modules/*.so \ + ${destdir}/usr/lib/irssi/modules +} diff --git a/templates/irssi/template b/templates/irssi/template index f97f749bd78..0eb049d3201 100644 --- a/templates/irssi/template +++ b/templates/irssi/template @@ -1,5 +1,6 @@ # Template build file for 'irssi' pkgname=irssi +sourcepkg=irssi version=0.8.12 distfiles="http://www.irssi.org/files/$pkgname-$version.tar.bz2" # We need this to get some perl paths. @@ -17,5 +18,11 @@ long_desc=" protocols like ICQ could be created some day too." conf_files="/etc/irssi.conf" -build_depends="glib-2.18.2 perl-5.10.0 openssl-0.9.8i ncurses-5.6" -run_depends="glibc-2.8 $build_depends" +subpackages="devel" + +Add_dependency full glibc +Add_dependency full glib +Add_dependency full perl +Add_dependency full openssl +Add_dependency build ncurses +Add_dependency run ncurses-libs diff --git a/templates/pcre-devel b/templates/pcre-devel new file mode 120000 index 00000000000..e95712375c7 --- /dev/null +++ b/templates/pcre-devel @@ -0,0 +1 @@ +pcre \ No newline at end of file diff --git a/templates/pcre/depends b/templates/pcre/depends new file mode 100644 index 00000000000..fe43c4f9c60 --- /dev/null +++ b/templates/pcre/depends @@ -0,0 +1,2 @@ +abi_depends=7.8 +api_depends=${abi_depends} diff --git a/templates/pcre/devel.template b/templates/pcre/devel.template new file mode 100644 index 00000000000..5a1539973fb --- /dev/null +++ b/templates/pcre/devel.template @@ -0,0 +1,25 @@ +# Template file for 'pcre-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run pcre + +do_install() +{ + local destdir=${XBPS_DESTDIR}/${pkgname}-${version} + local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version} + + mkdir -p ${destdir}/usr/bin + mkdir -p ${destdir}/usr/lib + mkdir -p ${destdir}/usr/share/man + + mv ${origdir}/usr/bin/pcre-config ${destdir}/usr/bin + mv ${origdir}/usr/include ${destdir}/usr + mv ${origdir}/usr/lib/*.*a ${destdir}/usr/lib + mv ${origdir}/usr/lib/*.so ${destdir}/usr/lib + mv ${origdir}/usr/lib/pkgconfig ${destdir}/usr/lib + mv ${origdir}/usr/share/man/man3 ${destdir}/usr/share/man +} diff --git a/templates/pcre/template b/templates/pcre/template index ce269d18ae7..afbfd486b03 100644 --- a/templates/pcre/template +++ b/templates/pcre/template @@ -1,9 +1,12 @@ # Template file for 'pcre' pkgname=pcre +sourcepkg=pcre version=7.8 distfiles="$SOURCEFORGE_SITE/pcre/$pkgname-$version.tar.bz2" build_style=gnu_configure -configure_args="--enable-utf8 --enable-unicode-properties" +configure_args="--enable-utf8 --enable-unicode-properties + --enable-pcregrep-libz --enable-pcregrep-libbz2 + --enable-newline-is-anycrlf" short_desc="Perl Compatible Regular Expressions" maintainer="Juan RP " checksum=795f3c2ae29339e633a4dac7b596d6cd4d86504befbe951c9d5ff42aca9858ff @@ -14,4 +17,9 @@ long_desc=" correspond to the POSIX regular expression API. The PCRE library is free, even for building commercial software." -run_depends="glibc-2.8" +subpackages="devel" + +Add_dependency run gcc-libstdc++ +Add_dependency full glibc +Add_dependency full zlib +Add_dependency full bzip2