relocate all packages with new group names from gentoo
This commit is contained in:
1 parent
20645c750a
commit
e133dbe26f
54 files changed
+42
-40
No files matched your search
@@ -0,0 +1,57 @@
|
||||
#!/usr/bin/env bash
|
||||
name='binutils'
|
||||
release='1'
|
||||
version='2.39'
|
||||
url='https://ftp.gnu.org/gnu/binutils/'
|
||||
description='A set of programs to assemble and manipulate binary and object files'
|
||||
email=' aliriza.keskin@pardus.org.tr'
|
||||
maintainer=' aliriza'
|
||||
license=('GPLv3')
|
||||
source=('https://ftp.gnu.org/gnu/binutils/binutils-2.39.tar.xz')
|
||||
depends=(zlib)
|
||||
makedepends=( )
|
||||
md5sums=('f7e986ae9ff06405cafb2e585ee36d27')
|
||||
arch=('x86_64')
|
||||
group=(sys.devel)
|
||||
|
||||
cd $name-$version
|
||||
|
||||
setup(){
|
||||
mkdir build
|
||||
cd build
|
||||
../configure --prefix=/usr \
|
||||
--libdir=/usr/lib64 \
|
||||
--disable-nls \
|
||||
--disable-werror \
|
||||
--enable-cet \
|
||||
--enable-default-execstack=no \
|
||||
--enable-deterministic-archives \
|
||||
--enable-gold \
|
||||
--enable-install-libiberty \
|
||||
--enable-ld=default \
|
||||
--enable-pgo-build=lto \
|
||||
--enable-plugins \
|
||||
--enable-relro \
|
||||
--enable-shared \
|
||||
--enable-targets=all \
|
||||
--enable-threads \
|
||||
--disable-gdb \
|
||||
--disable-gdbserver \
|
||||
--disable-libdecnumber \
|
||||
--disable-readline \
|
||||
--disable-sim \
|
||||
--disable-werror \
|
||||
--with-pic \
|
||||
--with-system-zlib
|
||||
}
|
||||
|
||||
build(){
|
||||
cd build
|
||||
make
|
||||
}
|
||||
|
||||
package(){
|
||||
cd build
|
||||
make install -j`nproc`
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
#!/usr/bin/env bash
|
||||
name='gcc'
|
||||
release='1'
|
||||
version='12.2.0'
|
||||
url='https://ftp.gnu.org/gnu/gcc/'
|
||||
description='GNU Compiler Collection'
|
||||
email=' parduscix@yandex.ru'
|
||||
maintainer=' sulincix'
|
||||
license=('GPLv3')
|
||||
source=('https://ftp.gnu.org/gnu/gcc/gcc-12.2.0/gcc-12.2.0.tar.xz')
|
||||
depends=(binutils libmpc zlib)
|
||||
makedepends=( )
|
||||
md5sums=('73bafd0af874439dcdb9fc063b6fb069')
|
||||
arch=('x86_64')
|
||||
group=(sys.devel)
|
||||
uses=(multilib)
|
||||
uses_extra=(langs)
|
||||
|
||||
cd $name-$version
|
||||
export CFLAGS="-O2 -s"
|
||||
export CXXFLAGS="-O2 -s"
|
||||
unset LDFLAGS
|
||||
|
||||
prepare(){
|
||||
cd ..
|
||||
# tar permissions and owners is not supported by ymp sandbox.
|
||||
# we remove broken source and extract again without permission and owners
|
||||
rm -rf $name-$version
|
||||
tar --no-same-owner --no-same-permissions -xvf $name-$version.tar.xz
|
||||
}
|
||||
|
||||
setup(){
|
||||
options=(
|
||||
--prefix=/usr
|
||||
--libdir=/usr/lib64
|
||||
--libexecdir=/usr/libexec
|
||||
--mandir=/usr/share/man
|
||||
--infodir=/usr/share/info
|
||||
--with-pkgversion="Sulix"
|
||||
--with-bugurl=https://gitlab.com/groups/sulix/-/issues
|
||||
--disable-checking
|
||||
--disable-fixed-point
|
||||
--disable-libstdcxx-pch
|
||||
--enable-plugin
|
||||
--enable-lto
|
||||
--enable-languages=c,c++$(use_opt langs ",fortran,go,objc,obj-c++" "")
|
||||
$(use_opt multilib "--enable-multilib" "")
|
||||
$(use_opt multilib "--enable-multiarch" "")
|
||||
--enable-shared
|
||||
--without-zstd
|
||||
--with-system-zlib
|
||||
--disable-nls
|
||||
)
|
||||
mkdir build
|
||||
cd build
|
||||
../configure ${options[@]}
|
||||
}
|
||||
|
||||
build(){
|
||||
cd build
|
||||
make -j`nproc`
|
||||
}
|
||||
|
||||
package(){
|
||||
cd build
|
||||
make install -j`nproc`
|
||||
mkdir -p ${DESTDIR}/usr/lib64/
|
||||
if use multilib ; then
|
||||
# move lib to lib64
|
||||
mv ${DESTDIR}/usr/{lib,lib32}
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user