diff options
Diffstat (limited to 'extra/lesstif/PKGBUILD')
-rw-r--r-- | extra/lesstif/PKGBUILD | 64 |
1 files changed, 31 insertions, 33 deletions
diff --git a/extra/lesstif/PKGBUILD b/extra/lesstif/PKGBUILD index 5d0d91350..fc55d369b 100644 --- a/extra/lesstif/PKGBUILD +++ b/extra/lesstif/PKGBUILD @@ -1,15 +1,12 @@ -# $Id: PKGBUILD 143913 2011-11-30 20:33:57Z andrea $ +# $Id: PKGBUILD 195188 2013-09-27 04:29:31Z eric $ # Maintainer: -# Contributor: Eric Belanger <eric@archlinux.org> -# Contributor: John Proctor <jproctor@prium.net> -# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> pkgname=lesstif pkgver=0.95.2 -pkgrel=4 +pkgrel=5 pkgdesc="LGPL'd re-implementation of Motif" arch=('i686' 'x86_64') -url="http://www.lesstif.org/" +url="http://sourceforge.net/projects/lesstif/" license=('LGPL' 'MIT') depends=('freetype2' 'libxt' 'libxp') options=('!libtool' '!buildflags') @@ -20,41 +17,42 @@ md5sums=('754187dbac09fcf5d18296437e72a32f' 'b1f320192a9154f72d83e9d3d5a25a2f' '30e2c0babc84696af089d55cb9cb2908') -build() { - cd "${srcdir}"/${pkgname}-${pkgver} +prepare() { + cd "${srcdir}"/${pkgname}-${pkgver} + + # https://bugs.archlinux.org/task/17712 + patch -p1 -i "${srcdir}"/040_fedora_XxxxProperty-64bit.diff +} - # https://bugs.archlinux.org/task/17712 - patch -p1 -i "${srcdir}"/040_fedora_XxxxProperty-64bit.diff +build() { + cd "${srcdir}"/${pkgname}-${pkgver} - ./configure --prefix=/usr \ - --mandir=/usr/share/man \ - --docdir=/usr/share/doc \ - --enable-production \ - --enable-nonstandard-conversions \ - --enable-editres \ - --with-xdnd \ - --enable-build-21 \ - --disable-debug \ - --enable-static + ./configure --prefix=/usr \ + --enable-production \ + --enable-nonstandard-conversions \ + --enable-editres \ + --with-xdnd \ + --enable-build-21 \ + --disable-debug \ + --enable-static - # fix linkage against already installed version - perl -pi -e 's/^(hardcode_into_libs)=.*/$1=no/' libtool + # fix linkage against already installed version + perl -pi -e 's/^(hardcode_into_libs)=.*/$1=no/' libtool - make + make - # fix linkage against already installed version - for f in `find . -name \*.la -type f` ; do - perl -pi -e 's/^(relink_command=.*)/# $1/' $f - done + # fix linkage against already installed version + for f in $(find . -name \*.la -type f) ; do + perl -pi -e 's/^(relink_command=.*)/# $1/' $f + done - make -C lib/Mrm-2.1 + make -C lib/Mrm-2.1 } package() { - cd "${srcdir}"/${pkgname}-${pkgver} + cd "${srcdir}"/${pkgname}-${pkgver} - make -C lib/Mrm-2.1 DESTDIR="${pkgdir}" install - make appdir=/usr/share/X11/app-defaults rootdir=/usr/share/LessTif \ - DESTDIR="${pkgdir}" install - install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + make -C lib/Mrm-2.1 DESTDIR="${pkgdir}" install + make DESTDIR="${pkgdir}" appdir=/usr/share/X11/app-defaults rootdir=/usr/share/doc/LessTif install + install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } |