Skip to content

Instantly share code, notes, and snippets.

@dottorblaster
Forked from anonymous/stdin.txt
Last active December 11, 2015 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dottorblaster/4545687 to your computer and use it in GitHub Desktop.
Save dottorblaster/4545687 to your computer and use it in GitHub Desktop.
# Contributor: Alessio Biancalana <dottorblaster@gmail.com>
pkgname=leocad
pkgver=0.79.1
_piecesver=7114
pkgrel=3
pkgdesc="LeoCAD is a CAD program that uses bricks similar to those found in many toys (but they don't represent any particular brand)."
arch=('i686' 'x86_64')
url="http://leocad.gerf.org/"
license=('GPL')
depends=('zlib' 'libjpeg' 'libpng' 'gtk2' 'mesa')
install=${pkgname}.install
source=("http://leocad.googlecode.com/files/${pkgname}-${pkgver}-src.tgz" "http://leocad.googlecode.com/files/pieces-${_piecesver}.zip")
md5sums=('d3d3e7fe8b219e7c02602db4ddbcbaf1'
'5be3590d960c546edf1d4dcb72dba7c1')
build() {
msg "Building LeoCAD"
mkdir -p ${pkgdir}/usr/lib/pieces/
cd ${srcdir}/${pkgname}/linux
LDLIBS="-X11" make
}
package(){
cd ${srcdir}/${pkgname}
make DESTDIR=${pkgdir} install
msg "Installing libraries"
install -Dm644 ${srcdir}/*.bin ${pkgdir}/usr/lib/pieces/
install -Dm644 ${srcdir}/*.idx ${pkgdir}/usr/lib/pieces/
install -Dm644 ${srcdir}/*.txf ${pkgdir}/usr/lib/pieces/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment