PKGBUILD 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Maintainer (Arch): Evangelos Foutras <evangelos@foutrelis.com>
  2. # Contributor (Arch): Daurnimator <quae@daurnimator.com>
  3. # Maintainer: Tobias Dausend <throgh@hyperbola.info>
  4. # Contributor: Jesús E. <heckyel@hyperbola.info>
  5. pkgname=libidn2
  6. pkgver=2.3.0
  7. pkgrel=2
  8. pkgdesc="Free software implementation of IDNA2008, Punycode and TR46"
  9. arch=('i686' 'x86_64')
  10. url='https://www.gnu.org/software/libidn/#libidn2'
  11. license=('GPL-2' 'LGPL-3')
  12. depends=('libunistring')
  13. source=(https://ftp.gnu.org/gnu/libidn/$pkgname-$pkgver.tar.gz{,.sig})
  14. sha512sums=('a2bf6d2249948bce14fbbc802f8af1c9b427fc9bf64203a2f3d7239d8e6061d0a8e7970a23e8e5889110a654a321e0504c7a6d049bb501e7f6a23d42b50b6187'
  15. 'SKIP')
  16. validpgpkeys=('1CB27DBC98614B2D5841646D08302DB6A2670428') # Tim Rühsen <tim.ruehsen@gmx.de>
  17. build() {
  18. cd $pkgname-$pkgver
  19. ./configure \
  20. --prefix=/usr \
  21. --disable-doc \
  22. --disable-static
  23. make
  24. }
  25. package() {
  26. cd $pkgname-$pkgver
  27. make DESTDIR="$pkgdir" install
  28. install -dm755 ${pkgdir}/lib
  29. mv ${pkgdir}/usr/lib/libidn2.so* ${pkgdir}/lib
  30. ln -sf ../../lib/libidn2.so ${pkgdir}/usr/lib/libidn2.so
  31. install -d -m755 ${pkgdir}/usr/share/licenses/${pkgname}
  32. install -m644 COPYING{,.LESSERv3} ${pkgdir}/usr/share/licenses/${pkgname}
  33. }