updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / jalv2 / PKGBUILD
blob5195e991ae99b894d35a86ca1f9db56df134a41b
1 # Maintainer: Matias De la Puente <mfpuente.ar@gmail.com>
2 pkgname=jalv2
3 pkgver=2.4o
4 _pkgname=jalv24o
5 pkgrel=1
6 pkgdesc="A compiler for the PIC microcontroller"
7 arch=('i686' 'x86_64')
8 url="http://www.casadeyork.com/jalv2/"
9 license=('custom')
10 depends=()
11 makedepends=()
12 optdepends=('jallib')
13 source=("http://www.casadeyork.com/jalv2/archive/${_pkgname}src.zip" 'jalv2.patch')
14 sha256sums=('4f467f6dbea916c913a5f0d96b57cc1d02958600abd4cfa487339a2b1892c337'
15             'e2d0dc74b80b5591ba11167a07ea1948b80b72e6e08cc0db633315b1e258ec35' )
17 build() {
18   cd "${srcdir}/${_pkgname}"
19   
20   patch -Np1 -i "${srcdir}/jalv2.patch"
21   mkdir -p bin
22   
23   cd "${srcdir}/${_pkgname}/src"
24   make
27 package() {
28   cd "${srcdir}/${_pkgname}"
29   
30   install -Dm755 "bin/jalv2" "${pkgdir}/usr/bin/jalv2"
31   
32   # install chipdef
33   install -dm755 "${pkgdir}/usr/share/${pkgname}/chipdef"
34   install -Dm644 -t "${pkgdir}/usr/share/${pkgname}/chipdef/" ${srcdir}/${_pkgname}/chipdef/*
35     
36   # install documentation
37   install -dm755 "${pkgdir}/usr/share/${pkgname}/doc"
38   install -Dm644 -t "${pkgdir}/usr/share/${pkgname}/doc" Documentation/* 
39   
40   # install custom license
41   install -Dm644 "Documentation/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"