Advertisement
Guest User

Untitled

a guest
Oct 30th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.87 KB | None | 0 0
  1. _pkgname=icu
  2. pkgname=${_pkgname}63
  3. pkgver=63.1
  4. pkgrel=2
  5. pkgdesc="International Components for Unicode library"
  6. arch=('i686' 'x86_64')
  7. url="http://www.icu-project.org/"
  8. license=('custom:"icu"')
  9. depends=('gcc-libs>=4.7.1-5')
  10. source=(http://download.icu-project.org/files/${_pkgname}4c/${pkgver}/${_pkgname}4c-${pkgver//./_}-src.tgz)
  11. md5sums=('9e40f6055294284df958200e308bce50')
  12.  
  13. build() {
  14.   cd ${srcdir}/${_pkgname}/source
  15.   ./configure --prefix=/usr \
  16.     --sysconfdir=/etc \
  17.     --mandir=/usr/share/man
  18.   make -j5
  19. }
  20.  
  21. package() {
  22.   cd ${srcdir}/${_pkgname}/source
  23.   make -j5 DESTDIR=${pkgdir} install
  24.   rm -r "${pkgdir}"/usr/{bin,include,sbin,share,lib/*so,lib/icu/{Makefile.inc,current,pkgdata.inc}}
  25.   rm -r "${pkgdir}/usr/lib/pkgconfig"
  26.  
  27.   # Install license
  28.   install -Dm644 ${srcdir}/${_pkgname}/license.html ${pkgdir}/usr/share/licenses/${pkgname}/license.html
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement