A new user interface for you! Read more...

File PKGBUILD of Package LPub4

# Maintainer: Peter Bartfai <pbartfai[at]stardust[dot]hu>
pkgname=lpub
pkgver=4.0
pkgrel=1
pkgdesc="LPub is a program that allow the production of step by step building instructions for LEGO models created using the LDraw file format"
url="http://sourceforge.net/projects/lpub4"
arch=('x86_64' 'i686')
license=('GPL')
depends=('qt4')
makedepends=('ca-certificates')
conflicts=()
replaces=()
backup=()
source=("LPub4.tar.gz" "lpub4-linux.patch")
md5sums=(SKIP SKIP)

build() {
  cd ${srcdir}/LPub4
  if test "$CARCH" == x86_64; then
    PLATFORM=linux-g++-64
  else
    PLATFORM=linux-g++-32
  fi
  if [ -x /usr/bin/qmake ] ; then qmake -spec $PLATFORM ; lrelease lpub.pro ; fi
  if [ -x /usr/bin/qmake-qt4 ] ; then qmake-qt4 -spec $PLATFORM ; lrelease-qt4 lpub.pro ; fi
  make
}
 
package() {
  cd "${srcdir}/LPub4"
  mkdir -p ${pkgdir}/usr/bin
  mkdir -p ${pkgdir}/usr/share/lpub
  install -m 755 lpub ${pkgdir}/usr/bin
  install -m 644 pli.mpd ${pkgdir}/usr/share/lpub/pli.mpd
}

prepare() {
  cd ${srcdir}/LPub4
  patch -p1 < ../lpub4-linux.patch
}