Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Maintainer: Riccardo Berto <[email protected]>
- pkgname=AOSCompiler
- pkgver=0.1
- pkgrel=1
- pkgdesc="AOSCompiler by lithid to compile Android sources"
- arch=('i686' 'x86_64')
- url="git://github.com/lithid/AOSCompiler.git"
- license=('GPL')
- groups=()
- depends=()
- makedepends=('git' 'make' 'gcc')
- provides=()
- conflicts=()
- replaces=()
- backup=()
- options=()
- install=
- source=()
- noextract=()
- md5sums=() #generate with 'makepkg -g'
- _gitroot=GITURL
- _gitname=MODENAME
- build() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- else
- git clone "$_gitroot" "$_gitname"
- fi
- msg "GIT checkout done or server timeout"
- msg "Starting build..."
- rm -rf "$srcdir/$_gitname-build"
- git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
- cd "$srcdir/$_gitname-build"
- #
- # BUILD HERE
- #
- }
- package() {
- cd "$srcdir/$_gitname-build"
- make DESTDIR="$pkgdir/" install
- }
- # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment