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:
39
srcpkgs/gcc-multilib/template
Normal file
39
srcpkgs/gcc-multilib/template
Normal file
@@ -0,0 +1,39 @@
|
||||
# Template build file for 'gcc-multilib'
|
||||
pkgname=gcc-multilib
|
||||
version=4.3.2
|
||||
wrksrc="gcc-$version"
|
||||
distfiles="http://ftp.gnu.org/pub/gnu/gcc/gcc-$version/gcc-$version.tar.bz2"
|
||||
build_style=gnu_configure
|
||||
configure_args="--enable-clocale=gnu --disable-bootstrap
|
||||
--enable-threads=posix --enable-__cxa_atexit --enable-multilib
|
||||
--enable-languages=c,c++ --enable-tls --enable-shared --with-system-zlib
|
||||
--with-local-prefix=$XBPS_DESTDIR/$pkgname-$version"
|
||||
short_desc="The GNU C Compiler suite (multilib libraries)"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=bfbf487731ad5dca37efe480a837417de071bd67e685d5c1df6a290707575165
|
||||
long_desc="
|
||||
The GNU C Compiler suite, with support for C, C++, Fortran, ObjC.
|
||||
|
||||
This package installs the 32 bit libraries required to compile 32 bit
|
||||
code on x86_64 systems."
|
||||
|
||||
only_for_archs="x86_64"
|
||||
|
||||
Add_dependency full glibc32
|
||||
|
||||
post_install()
|
||||
{
|
||||
local DESTDIR=$XBPS_DESTDIR/$pkgname-$version
|
||||
|
||||
# We are only interested in 32bit libs, remove anything else.
|
||||
rm -r $DESTDIR/usr/lib64
|
||||
rm -r $DESTDIR/usr/libexec
|
||||
rm -r $DESTDIR/usr/include
|
||||
rm -r $DESTDIR/usr/bin
|
||||
rm -r $DESTDIR/usr/share
|
||||
rm $DESTDIR/usr/lib/libiberty*
|
||||
rm -r $DESTDIR/usr/lib/gcc/x86_64-unknown-linux-gnu/$version/*include*
|
||||
rm -r $DESTDIR/usr/lib/gcc/x86_64-unknown-linux-gnu/$version/install-tools
|
||||
rm $DESTDIR/usr/lib/gcc/x86_64-unknown-linux-gnu/$version/crt*
|
||||
rm $DESTDIR/usr/lib/gcc/x86_64-unknown-linux-gnu/$version/libgcov*
|
||||
}
|
||||
Reference in New Issue
Block a user