updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / leocad / PKGBUILD
blob495f988bac6fa3482459c2066fee090829810e68
1 # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
3 pkgname=leocad
4 pkgver=0.75.1
5 pkgrel=2
6 pkgdesc="LeoCAD is a CAD program that uses bricks similar to those found in many toys (but they don't represent any particular brand)."
7 arch=(i686)
8 url="http://leocad.gerf.org/"
9 license=('GPL')
10 depends=('zlib' 'libjpeg' 'libpng' 'gtk2' 'mesa')
11 install=${pkgname}.install
12 source=("http://leocad.googlecode.com/files/${pkgname}-${pkgver}.tgz" "http://leocad.googlecode.com/files/pieces-3934.zip")
13 md5sums=('f0b89a78ee04f5557631a089ffcff107'
14          '9177d153d22fa58213d5817ad3198e18')
16 build() {
17   msg "Building LeoCAD"
18   mkdir -p ${pkgdir}/usr/lib/pieces/
19   cd ${srcdir}/${pkgname}-${pkgver}/linux
20   make
23 package(){
24   cd ${srcdir}/${pkgname}-${pkgver}
25   make DESTDIR=${pkgdir} install
26   msg "Installing libraries"
27   install -Dm644 ${srcdir}/*.bin ${pkgdir}/usr/lib/pieces/
28   install -Dm644 ${srcdir}/*.idx ${pkgdir}/usr/lib/pieces/
29   install -Dm644 ${srcdir}/*.txf ${pkgdir}/usr/lib/pieces/