Major infrastructure changes, part 2.

* Moved helpers, common and triggers dirs into xbps-src, where
  they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
  example udev now has a subpkgs called "libgudev". Previously
  subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
  That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.

And more that I forgot because it's a mega-commit that I've been
working for some days already...

--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
This commit is contained in:
Juan RP
2009-11-22 08:31:44 +01:00
parent 3c58e3ad40
commit 85cc462e1d
1305 changed files with 719 additions and 654 deletions

2
srcpkgs/liboil/depends Normal file
View File

@@ -0,0 +1,2 @@
abi_depends=">=0.3.16"
api_depends="${abi_depends}"

View File

@@ -0,0 +1,19 @@
# Template file for 'liboil-devel'.
#
short_desc="${sourcepkg} development files"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run liboil
do_install()
{
mkdir -p ${DESTDIR}/usr/lib
mkdir -p ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/share/gtk-doc ${DESTDIR}/usr/share
}

19
srcpkgs/liboil/template Normal file
View File

@@ -0,0 +1,19 @@
# Template build file for 'liboil'.
pkgname=liboil
version=0.3.16
distfiles="http://liboil.freedesktop.org/download/$pkgname-$version.tar.gz"
build_style=gnu_configure
short_desc="Library of Optimized Inner Loops, CPU optimized functions"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=009115b0fc888dfe28903fecfe806707c544ccad6554ebabdeb3a1d88ec1e9d1
long_desc="
Liboil is a library of simple functions that are optimized for various CPUs.
These functions are generally loops implementing simple algorithms, such as
converting an array of N integers to floating-poing numbers or multiplying
and summing an array of N numbers. Clearly such functions are candidates for
significant optimization using various techniques, especially by using
extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.)."
subpackages="$pkgname-devel"
Add_dependency build pkg-config
Add_dependency full glibc