You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
#!/usr/bin/env bash |
|
|
|
./configure --prefix=/usr \ |
|
--mandir=/usr/share/man \ |
|
--with-shared \ |
|
--without-debug \ |
|
--without-normal \ |
|
--with-cxx-shared \ |
|
--enable-pc-files \ |
|
--with-pkg-config-libdir=/usr/lib/pkgconfig |
|
|
|
make |
|
|
|
make DESTDIR="${PWD}"/dest install |
|
sed -e 's/^#if.*XOPEN.*$/#if 1/' \ |
|
-i dest/usr/include/curses.h |
|
cp --remove-destination -av dest/* / |
|
|
|
for lib in ncurses form panel menu ; do |
|
ln -svf lib${lib}w.so /usr/lib/lib${lib}.so |
|
ln -svf ${lib}w.pc /usr/lib/pkgconfig/${lib}.pc |
|
done |
|
|
|
ln -sf libncursesw.so /usr/lib/libcurses.so |
|
|
|
cp -v -R doc -T /usr/share/doc/ncurses-6.6 |
|
|
|
|
|
# compilation with ABI version 5 |
|
# make distclean |
|
# ./configure --prefix=/usr \ |
|
# --with-shared \ |
|
# --without-normal \ |
|
# --without-debug \ |
|
# --without-cxx-binding \ |
|
# --with-abi-version=5 |
|
# make sources libs |
|
# cp -av lib/lib*.so.5* /usr/lib |