updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / fwtool-git / PKGBUILD
bloba740c241ee4ce7dd26b862cd20109e75a1ace89d
1 # Maintainer: Tetsumaki <http://goo.gl/YMBdA>
3 pkgname=fwtool-git
4 pkgver=20110116
5 pkgrel=1
6 pkgdesc="PS3 Firmware PKG tool"
7 arch=('i686' 'x86_64')
8 url="http://www.teknoconsolas.es/index.php?q=blogs/waninkoko"
9 license=('GPLv3')
10 makedepends=('git')
11 optdepends=('geohot-ps3publictools-git' 'gpup' 'ps3-sfo-editor' 'fail0verflow-git')
13 _gitroot="git://github.com/evilsperm/fwtool.git"
14 _gitname="fwtool"
16 build() {
17   cd "${srcdir}"
19   if [ -d ${_gitname} ]; then
20     cd "${_gitname}" && git pull origin
21   else
22     git clone $_gitroot
23   fi
25   rm -rf "${srcdir}/${_gitname}-build"
26   git clone --depth 1 "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
27   cd "${srcdir}/${_gitname}-build"
29   make
32 package() {
33   cd "${srcdir}/${_gitname}-build"
35   for src in `ls`; do
36     case `file -b --mime-type "${src}"` in
37       "application/x-executable")
38         install -D -m755 "./${src}" "${pkgdir}/usr/bin/${src}";;
39     esac
40   done