This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

kanatest-PKGBUILD

By: skydark on Oct 22nd, 2012  |  syntax: Bash  |  size: 1.26 KB  |  views: 93  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Bjorn Lindeijer <bjorn lindeijer nl>
  2. pkgname=kanatest
  3. pkgver=0.4.8
  4. pkgrel=5
  5. pkgdesc="A simple Hiragana and Katakana drill tool"
  6. arch=('i686' 'x86_64')
  7. url="http://www.clayo.org/kanatest/"
  8. license=('GPL')
  9. depends=('gtk2' 'libxml2')
  10. optdepends=('ttf-freefont: for using FreeSerif or FreeSans fonts'
  11.             'ttf-arphic-uming: for using AR PL ShanHeiSun Uni font'
  12.             'ttf-arphic-ukai: for using AR PL ZenKai Uni font')
  13. install='kanatest.install'
  14. source=(kanatest.desktop
  15.         https://launchpad.net/ubuntu/+archive/primary/+files/kanatest_0.4.8.orig.tar.gz
  16.         https://launchpad.net/ubuntu/+archive/primary/+files/kanatest_0.4.8-2ubuntu1.diff.gz)
  17. md5sums=('19e06e277f76958582ba5cc456c814a9'
  18.          'b97b0521314f634e454354cb7ba2013d'
  19.          '5026200afb7a590d4b14baee54184ca2')
  20.  
  21. build() {
  22.   cd "${srcdir}/kanatest-0.4.8"
  23.   patch -p1 < ../kanatest_0.4.8-2ubuntu1.diff
  24.   patch -p1 < debian/patches/001_PATH_MAX_fix.diff
  25.   patch -p1 < debian/patches/002_updated_emails_and_links.patch
  26.   patch -p1 < debian/patches/003_gtk_ftbfs_fix.patch
  27.   patch -p1 < debian/patches/004_enable_deprecated.patch
  28.   cp ../kanatest.desktop data/
  29.  
  30.   ./configure --prefix=/usr || return 1
  31.   make || return 1
  32.   make DESTDIR="$pkgdir" install || return 1
  33. }
clone this paste RAW Paste Data