galeb-mkfiles

Извори пакета за Галеб
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување e1ee039cc13ada6071c5a17d8d4c5a647d830c84
родитељ a7281d1894822c03df94d7379e2148c6bd8fc755
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Thu, 18 Aug 2022 21:10:08 +0200

Add xapian-core; update TODO

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
MTODO | 4+++-
Axapian-core/config.mk | 4++++
Axapian-core/description | 1+
Axapian-core/mkfile | 51+++++++++++++++++++++++++++++++++++++++++++++++++++
измењених датотека: 4, додавања: 59(+), брисања: 1(-)

diff --git a/TODO b/TODO @@ -1,8 +1,10 @@ TODO ==== +[ ] Create separate .mk for Auto*hell packages (standard.mk is not applicable) + [ ] Add neomutt - [ ] Determine minimal set of dependencies to run Luke Smith's + [~] Determine minimal set of dependencies to run Luke Smith's mutt-wizard and add those first [ ] Add X (quite a task!) diff --git a/xapian-core/config.mk b/xapian-core/config.mk @@ -0,0 +1,4 @@ +PKGVER= 1.4.20 +LEGALFILES= COPYING +PREFIX= / +SRCTARBALLS= https://oligarchy.co.uk/xapian/1.4.20/xapian-core-1.4.20.tar.xz diff --git a/xapian-core/description b/xapian-core/description @@ -0,0 +1 @@ +Dependency for notmuch (and thus neomutt) diff --git a/xapian-core/mkfile b/xapian-core/mkfile @@ -0,0 +1,51 @@ +mkpklib=/lib/mkpk +<$mkpklib/defaults.mk +<config.mk +<$mkpklib/derivatives.mk + +PKGBASE= xapian-core +PKG= $PKGBASE-$PKGVER +BINDIR= /bin +MANDIR= /share/man +SYSCONFDIR= /etc +CFLAGS= $CFLAGS -static-libstdc++ -static-libgcc +CXXFLAGS= $CFLAGS +LDFLAGS= -static -Wl,-Bstatic + +$PKGBASE:QV: + ./configure --prefix=$PREFIX \ + --bindir=$BINDIR \ + --mandir=$MANDIR \ + --sysconfdir=$SYSCONFDIR \ + --enable-static \ + --disable-shared + # Hack to force linking with libstdc++.a instead of libstdc++.so + make libxapian.la libgetopt.la + mv libgetopt.la libgetopt.la~ + sed 's/\(libstdc++\)\.la/\1.a/' libgetopt.la~ > libgetopt.la + mv libxapian.la libxapian.la~ + sed 's/\(libstdc++\)\.la/\1.a/' libxapian.la~ > libxapian.la + make + +install:QV: $PKGBASE install-legal + # Fix Makefile (for some reason sets INSTALL = ../install) + mv docs/Makefile docs/Makefile~ + sed 's/^\(INSTALL = \).*/\1install/' docs/Makefile~ > docs/Makefile + make DESTDIR=$(realpath $DESTDIR) install + # Repeat forcing of libstdc++.a instead of libstdc++.so to also fix + # packages depending on xapian-core + mv $DESTDIR/lib/libgetopt.la libgetopt.la~ + sed 's/\(libstdc++\)\.la/\1.a/' libgetopt.la~ >$DESTDIR/lib/libgetopt.la + mv $DESTDIR/lib/libxapian.la libxapian.la~ + sed 's/\(libstdc++\)\.la/\1.a/' libxapian.la~ >$DESTDIR/lib/libxapian.la + +install-legal:QV: $PKGBASE + for legalfile in $LEGALFILES; do + printf " INST\t%s\n" "$legalfile" + $INSTALL -Dm0644 "$legalfile" $LEGALDIR/$legalfile + done + +clean:QV: + make clean + +<$mkpklib/package.mk