public
anonymous / rktools-pkgbuild
Created

  • Download Gist
rktools-pkgbuild
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
 
pkgname=rk-tools
pkgver=1.0
pkgrel=1
pkgdesc="RockChip tools for RK29xx and RK30xx generations, mainly to modify ROMs (http://www.cnx-software.com/2012/11/04/rockchip-rk3066-rk30xx-processor-documentation-source-code-and-tools/)."
arch=(i686 x86_64)
url="https://github.com/rk3066/rk-tools.git"
license=('unknown')
groups=('system')
depends=()
makedepends=('gcc' 'make' 'git')
 
build() {
cd $srcdir
 
# If directiry alredy exists
if [ -d $pkgname ]; then
# If .git exists
if [ -d "$pkgname/.git" ]; then
# Checkout
cd $pkgname
git checkout
else
# ==== Remove dir if it has no .git ===
rm -R $pkgname || return 1
fi
else
git clone $url
cd $pkgname
fi
make || return 1
 
mkdir -p $pkgdir/usr/bin
install $srcdir/$pkgname/afptool $pkgdir/usr/bin
install $srcdir/$pkgname/img_maker $pkgdir/usr/bin
install $srcdir/$pkgname/img_unpack $pkgdir/usr/bin
install $srcdir/$pkgname/rkcrc $pkgdir/usr/bin
install $srcdir/$pkgname/rkkernel $pkgdir/usr/bin
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.