Skip to content

Commit

Permalink
[ncurses] Remove from any groups and set prefix to /usr
Browse files Browse the repository at this point in the history
Related to #128
  • Loading branch information
jhuntwork committed Apr 9, 2021
1 parent 73fd7b2 commit bfa59f4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
5 changes: 5 additions & 0 deletions packages/ncurses/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2021-04-09 Jeremy Huntwork <jhuntwork@lightcubesolutions.com>

* 6.2-2 :
Use /usr for prefix

2021-02-21 Jeremy Huntwork <jhuntwork@lightcubesolutions.com>

* 6.2-1 :
Expand Down
35 changes: 17 additions & 18 deletions packages/ncurses/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ pkgname=(
libncurses-dev
)
pkgver=6.2
pkgrel=1
pkgrel=2
pkgdesc='An API for writing text-based user interfaces'
arch=(x86_64)
url='http://www.gnu.org/software/ncurses'
license=(GPL2)
groups=(base)
groups=()
depends=()
makedepends=(
ncurses
Expand All @@ -35,56 +35,55 @@ sha256sums=(

build() {
cd_unpacked_src
echo $PATH
zcat "$srcdir"/termcap.src.gz >termcap
./ncurses/tinfo/MKfallback.sh /share/terminfo/ termcap tic infocmp \
./ncurses/tinfo/MKfallback.sh /usr/share/terminfo/ termcap tic infocmp \
linux vt100 xterm xterm-256color >ncurses/fallback.c
CFLAGS="$CFLAGS -fPIC -static" \
CFLAGS+=' -fPIC -static' \
./configure \
--prefix='' \
--prefix=/usr \
--with-fallbacks="linux vt100 xterm xterm256-color" \
--disable-debug \
--without-tests \
--disable-nls \
--without-cxx-binding \
--without-dlsym \
--enable-widec \
--enable-sigwinch \
--includedir=/include \
--mandir=/share/man
--enable-sigwinch
make
}

package_ncurses() {
pkgfiles=(bin)
pkgfiles=(usr/bin)

cd_unpacked_src
make DESTDIR="${pkgdirbase}/dest" install

cd "${pkgdirbase}/dest" || return 1
for lib in ncurses form panel menu ; do
ln -s lib${lib}w.a lib/lib${lib}.a
ln -s lib${lib}w.a usr/lib/lib${lib}.a
done
ln -s libncurses.a lib/libcurses.a
ln -s ncursesw include/ncurses
ln -s libncurses.a usr/lib/libcurses.a
ln -s ncursesw usr/include/ncurses

find ${pkgfiles[@]} | cpio -dump --quiet "$pkgdir"
# ncurses6w-config is in -dev and clear/reset are in busybox
rm "$pkgdir"/bin/{ncursesw6-config,clear,reset}
rm "$pkgdir"/usr/bin/{ncursesw6-config,clear,reset}
}

package_ncurses-terminfo() {
pkgfiles=(share/terminfo)
pkgfiles=(usr/share/terminfo)
depends=(ncurses)
std_split_package
}

package_libncurses-dev() {
pkgfiles=(
bin/ncursesw6-config
include
lib/*.a
usr/bin/ncursesw6-config
usr/include
usr/lib/*.a
)
cd "${pkgdirbase}/dest" || return 1
ln -s ncursesw6-config bin/ncurses6-config
ln -s ncursesw6-config usr/bin/ncurses6-config
std_split_package
}

0 comments on commit bfa59f4

Please sign in to comment.