Pkgfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Description: A lightweight and featureful Word Processor
  2. # URL: http://www.abisource.com
  3. # Maintainer: Daniel Azevedo, daniazevedo77 at posteo dot net
  4. # Depends on: boost dbus-glib libgcrypt librsvg libxslt wv
  5. # originally found at Petar Petrov's Github repo crux-ports
  6. name=abiword
  7. version=3.0.5
  8. release=3
  9. source=(https://gitlab.gnome.org/World/AbiWord/-/archive/release-3.0.5/AbiWord-release-3.0.5.tar.gz enchant-2.1.patch)
  10. build() {
  11. cd AbiWord-release-$version
  12. export PKG_CONFIG_PATH="/usr/lib/libxml210/pkgconfig:$PKG_CONFIG_PATH"
  13. patch -p1 < $SRC/enchant-2.1.patch
  14. # 20200622 bkw: don't let abiword create /root/.config/abiword/profile
  15. # during the build process. Don't break ccache in the process.
  16. mkdir -p tmphome
  17. export CCACHE_DIR=${CCACHE_DIR:-$HOME/.ccache}
  18. export HOME=$( pwd )/tmphome
  19. ./autogen.sh
  20. CPPFLAGS="-I$SRC/$name-$version" \
  21. CFLAGS="$CFLAGS -fcommon" \
  22. CXXFLAGS="$CXXCFLAGS -fcommon" \
  23. ./configure --prefix=/usr \
  24. --disable-static \
  25. --with-gtk2
  26. make
  27. make install DESTDIR=$PKG
  28. rm -f $PKG/{,usr/}lib/*.la
  29. rm -rf $PKG/usr/share/$name-${version%.*}/{strings,templates/normal.awt-*,system.profile-*}
  30. }