Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2015
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.58 KB | None | 0 0
  1. # Maintainer: (epsilom) Xavier Corredor <xavier.corredor.llano (a) gmail.com>
  2. # Old-Mantainer: Gonzalo Seguel <gonzaloseguel@gmail.com>
  3.  
  4. pkgname=kfilebox
  5. pkgver=0.4.10
  6. pkgrel=1
  7. pkgdesc="KDE4 Dropbox client (with own daemon)"
  8. arch=('i686' 'x86_64')
  9. url="https://github.com/gtgt/kfilebox"
  10. license=('GPL')
  11. depends=('gettext')
  12. provides=('dropbox')
  13. source=("${url}/archive/${pkgver}.tar.gz")
  14. install=${pkgname}.install
  15. noextract=(${pkgname}-${pkgver}.tar.gz)
  16. md5sums=('79d58aab7a342851cd961a0f784caefd')
  17.  
  18. build() {
  19.         cd "${srcdir}/${pkgname}-${pkgver}"
  20.         qmake-qt4
  21.         make
  22. }
  23.  
  24. package() {
  25.         cd "${srcdir}/${pkgname}-${pkgver}"
  26.         find bin/kfilebox -type f -exec install -Dm755 '{}' "${pkgdir}/usr/{}" \;
  27.         find kfilebox.notifyrc -type f -exec install -Dm644 '{}' "${pkgdir}/usr/share/apps/kfilebox/{}" \;
  28.         find kfilebox.desktop -type f -exec install -Dm 644 '{}' "${pkgdir}/usr/share/applications/kde4/{}" \;
  29.         cd "${srcdir}/${pkgname}-${pkgver}/img"
  30.         find kfilebox.png -type f -exec install -Dm644 '{}' "${pkgdir}/usr/share/kfilebox/{}" \;
  31.         cd "${srcdir}/${pkgname}-${pkgver}/img/hicolor"
  32.         find * -type f -exec install -Dm 644 '{}' "${pkgdir}/usr/share/icons/hicolor/{}" \;
  33.         find * -type f -exec install -Dm 644 '{}' "${pkgdir}/usr/share/icons/oxygen/{}" \;
  34.  
  35.         for language in `ls "locale"`
  36.         do
  37.             if [ -e locale/$language/kfilebox.mo ]; then
  38.         install -m 644 -p -D locale/$language/kfilebox.mo ${pkgdir}/usr/share/locale/$language/LC_MESSAGES/kfilebox.mo
  39.             fi
  40.         done
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement