Guest User

Untitled

a guest
Feb 29th, 2012
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.61 KB | None | 0 0
  1. pkgname=lang_numx
  2. pkgver=20120229
  3. pkgrel=1
  4. pkgdesc='Keyboard layout numlock indicator'
  5. arch=('i686' 'x86_64')
  6. license=('GPL')
  7. depends=('qt' 'libx11' 'libxtst')
  8. provides=(lang_numx)
  9. _gitroot="git://github.com/VlaoMao/lang_numx.git"
  10. _gitname="lang_numx"
  11.  
  12. build(){
  13.   cd ${srcdir}
  14.         if [[ -d $_gitname ]]; then
  15.                 (cd $_gitname && git pull origin)
  16.         else
  17.                 git clone $_gitroot $_gitname
  18.         fi
  19.   mkdir -p build
  20.   cd build
  21.  
  22.   qmake ../${_gitname}
  23.   make
  24. }
  25.  
  26. package() {
  27.   cd ${srcdir}/build
  28.   install -D -m755 "./lang_numx" "${pkgdir}/usr/bin/lang_numx"
  29. }
Advertisement
Add Comment
Please, Sign In to add comment