PKGBUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Maintainer (Arch:pixman): Jan de Groot <jgc@archlinux.org>
  2. # Maintainer (Arch:pixman): Andreas Radke <andyrtr@archlinux.org>
  3. # Contributor (Arch:pixman): Alexander Baldeck <alexander@archlinux.org>
  4. # Maintainer: Luke Shumaker <lukeshu@parabola.nu>
  5. # Contributor: Márcio Silva <coadde@hyperbola.info>
  6. _pkgname=pixman
  7. pkgname=pixman-static
  8. pkgver=0.38.4
  9. pkgrel=1
  10. pkgrel+=.static1
  11. pkgdesc="The pixel-manipulation library for X and cairo"
  12. pkgdes+=" (static libraries)"
  13. arch=(x86_64)
  14. arch+=(i686 armv7h)
  15. url="https://cgit.freedesktop.org/pixman/"
  16. license=('custom')
  17. depends=("pixman=$pkgver")
  18. makedepends=('meson' 'libpng')
  19. options=('staticlibs')
  20. source=(https://xorg.freedesktop.org/releases/individual/lib/${_pkgname}-${pkgver}.tar.bz2)
  21. sha1sums=('87e1abc91ac4e5dfcc275f744f1d0ec3277ee7cd')
  22. build() {
  23. cd $_pkgname-$pkgver
  24. ./configure --prefix=/usr --enable-static
  25. make
  26. }
  27. check() {
  28. cd $_pkgname-$pkgver
  29. make check
  30. }
  31. package() {
  32. cd $_pkgname-$pkgver
  33. make DESTDIR="${pkgdir}" install
  34. install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  35. install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
  36. # remove conflicting files
  37. rm -vr ${pkgdir}/usr/{include,lib/pkgconfig}
  38. rm -v ${pkgdir}/usr/lib/lib*.so*
  39. }