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,75 @@
|
||||
#!/bin/bash
|
||||
name=ncurses
|
||||
version=6.3
|
||||
release=1
|
||||
url='https://invisible-island.net/ncurses/ncurses.html'
|
||||
description="System V Release 4.0 curses emulation library"
|
||||
email='parduscix@yandex.ru'
|
||||
maintainer='sulincix'
|
||||
license=('MIT')
|
||||
arch=(x86_64)
|
||||
source=(https://invisible-mirror.net/archives/$name/$name-$version.tar.gz)
|
||||
md5sums=(a2736befde5fee7d2b7eb45eb281cdbe)
|
||||
depends=(glibc)
|
||||
so_ver=6
|
||||
group=(sys.libs)
|
||||
|
||||
cd $name-$version
|
||||
|
||||
setup(){
|
||||
cp -prf ../$name-$version ../widec
|
||||
opts=(--prefix=/usr
|
||||
--libdir=/lib64/ncurses
|
||||
--without-ada
|
||||
--without-tests
|
||||
--disable-termcap
|
||||
--disable-rpath-hack
|
||||
--disable-stripping
|
||||
--with-pkg-config-libdir=/usr/lib64/pkgconfig
|
||||
--with-termlib
|
||||
--with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo:/lib/terminfo:/usr/lib/terminfo"
|
||||
--enable-pc-files
|
||||
--with-shared)
|
||||
./configure ${opts[@]}
|
||||
cd ../widec
|
||||
./configure ${opts[@]} --enable-widec
|
||||
}
|
||||
|
||||
build(){
|
||||
cd ../widec
|
||||
make -j$(nproc)
|
||||
cd ../$name-$version
|
||||
make -j$(nproc)
|
||||
|
||||
}
|
||||
|
||||
package(){
|
||||
mkdir -p "$DESTDIR/lib64/ncurses/" "$DESTDIR/usr/lib64/pkgconfig/"
|
||||
for lib in ncurses ncurses++ form panel menu; do
|
||||
printf "INPUT(-l%sw)\n" "${lib}" > "$DESTDIR/lib64/ncurses/lib${lib}.so"
|
||||
ln -sv ${lib}w.pc "$DESTDIR/usr/lib64/pkgconfig/${lib}.pc"
|
||||
done
|
||||
# some packages look for -lcurses during build
|
||||
printf 'INPUT(-lncursesw)\n' > "$DESTDIR/lib64/ncurses/libcursesw.so"
|
||||
ln -sv libncurses.so "$DESTDIR/lib64/ncurses/libcurses.so"
|
||||
|
||||
# tic and ticinfo functionality is built in by default
|
||||
# make sure that anything linking against it links against libncursesw.so instead
|
||||
for lib in tic tinfo; do
|
||||
printf "INPUT(libncursesw.so.%s)\n" "${so_ver}" > "$DESTDIR/lib64/ncurses/lib${lib}.so"
|
||||
if ! ls $DESTDIR/lib64/ncurses/lib${lib}.so.${so_ver} ; then
|
||||
ln -sv libncursesw.so.${so_ver} "$DESTDIR/lib64/ncurses/lib${lib}.so.${so_ver}"
|
||||
ln -sv ncursesw.pc "$DESTDIR/usr/lib64/pkgconfig/${lib}.pc"
|
||||
fi
|
||||
done
|
||||
# legacy binary support
|
||||
for lib in libncursesw libncurses libtinfo libpanelw libformw libmenuw ; do
|
||||
ln -sv ${lib}.so.${so_ver} "$DESTDIR"/lib64/ncurses/${lib}.so.5
|
||||
done
|
||||
cd ../widec
|
||||
make -j$(nproc) install
|
||||
cd ../$name-$version
|
||||
make -j$(nproc) install
|
||||
mkdir -p ${DESTDIR}/etc/ld.so.conf.d/
|
||||
echo "/lib64/ncurses/" > ${DESTDIR}/etc/ld.so.conf.d/ncurses.conf
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
# do not bell on tab-completion
|
||||
#set bell-style none
|
||||
|
||||
set colored-stats On
|
||||
set completion-ignore-case On
|
||||
set completion-prefix-display-length 3
|
||||
set mark-symlinked-directories On
|
||||
set show-all-if-ambiguous On
|
||||
set show-all-if-unmodified On
|
||||
set visible-stats On
|
||||
set colored-completion-prefix on
|
||||
set mark-modified-lines on
|
||||
set menu-complete-display-prefix on
|
||||
|
||||
$if mode=emacs
|
||||
|
||||
# for linux console and RH/Debian xterm
|
||||
"\e[1~": beginning-of-line
|
||||
"\e[4~": end-of-line
|
||||
"\e[5~": beginning-of-history
|
||||
"\e[6~": end-of-history
|
||||
"\e[7~": beginning-of-line
|
||||
"\e[3~": delete-char
|
||||
"\e[2~": quoted-insert
|
||||
"\e[5C": forward-word
|
||||
"\e[5D": backward-word
|
||||
"\e\e[C": forward-word
|
||||
"\e\e[D": backward-word
|
||||
"\e[1;5C": forward-word
|
||||
"\e[1;5D": backward-word
|
||||
|
||||
# for rxvt
|
||||
"\e[8~": end-of-line
|
||||
|
||||
# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
|
||||
"\eOH": beginning-of-line
|
||||
"\eOF": end-of-line
|
||||
|
||||
# for freebsd console
|
||||
"\e[H": beginning-of-line
|
||||
"\e[F": end-of-line
|
||||
$endif
|
||||
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
name=readline
|
||||
version=8.1
|
||||
release=1
|
||||
url='http://www.gnu.org/software/readline/'
|
||||
description="GNU readline library"
|
||||
email='parduscix@yandex.ru'
|
||||
maintainer='sulincix'
|
||||
license=('GPL')
|
||||
arch=(x86_64)
|
||||
source=(https://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz
|
||||
inputrc)
|
||||
md5sums=('e9557dd5b1409f5d7b37ef717c64518e'
|
||||
'SKIP')
|
||||
depends=(glibc)
|
||||
group=(sys.apps)
|
||||
|
||||
cd $name-$version
|
||||
|
||||
setup(){
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/lib64/readline
|
||||
}
|
||||
|
||||
build(){
|
||||
make SHLIB_LIBS="-L/tools/lib -lncursesw"
|
||||
}
|
||||
|
||||
package(){
|
||||
make SHLIB_LIBS="-L/tools/lib -lncursesw" DESTDIR="$DESTDIR" install pkgconfigdir="/usr/lib64/pkgconfig"
|
||||
install -Dm644 ../inputrc "$DESTDIR"/etc/inputrc
|
||||
mkdir -p ${DESTDIR}/etc/ld.so.conf.d/
|
||||
echo "/lib64/readline/" > ${DESTDIR}/etc/ld.so.conf.d/readline.conf
|
||||
}
|
||||
Reference in new issue
Block a user