updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / htcflasher / PKGBUILD
blobbea45dbc83d1ea828b59925002144c99af3d776e
1 # Contributor: Jordy van Wolferen <jordz@archlinux.us>
3 pkgname=htcflasher
4 pkgver=20080806
5 pkgrel=2
6 pkgdesc="Open source RUU for HTC devices"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/htc-flasher/"
9 license="GPL3"
10 source=(http://htc-flasher.googlecode.com/files/HTCFlasher-$pkgver-1.tar.gz)
11 md5sums=('d0bcbc2a9dfc931351b4fc487a222bb0')
13 build() 
15         cd ${srcdir}/HTCFlasher-$pkgver
16         
17         if [ "$CARCH" = "x86_64" ]; then
18                 sed -i 's/m32/m64/g' src/Makefile
19         fi
20                 
21         make || return 1
22         
23         mkdir -p ${pkgdir}/usr/bin
24         mkdir -p ${pkgdir}/usr/share/man/man1
25         
26         install -m 755 src/HTCFlasher ${pkgdir}/usr/bin/htcflasher
27         install -m 755 src/yang ${pkgdir}/usr/bin/yang
28         
29         install -m 444 man/HTCFlasher.1 ${pkgdir}/usr/share/man/man1/htcflasher.1
30         install -m 444 man/yang.1 ${pkgdir}/usr/share/man/man1/yang.1