summaryrefslogtreecommitdiff
path: root/libre/pixman-static/PKGBUILD
blob: 27c04f7dc5e4830f4ecdf4c13bd0dd0ff7919fce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Márcio Silva <coadde@parabola.nu>
# based of pixman

_pkgname=pixman
pkgname=pixman-static
pkgver=0.34.0
pkgrel=1
pkgdesc="The pixel-manipulation library for X and cairo (static libraries only)"
arch=(i686 x86_64 armv7h)
url="http://xorg.freedesktop.org"
license=('custom')
depends=('pixman')
options=('staticlibs')
source=(http://xorg.freedesktop.org/releases/individual/lib/${_pkgname}-${pkgver}.tar.bz2)
sha1sums=('367698744e74d6d4f363041482965b9ea7fbe4a5')

build() {
  cd $_pkgname-$pkgver
  ./configure --prefix=/usr --enable-static
  make
}

check() {
  cd $_pkgname-$pkgver
  make check
}

package() {
  cd $_pkgname-$pkgver
  make DESTDIR="${pkgdir}" install

  # remove conflicting files
  rm -vr ${pkgdir}/usr/{include,lib/pkgconfig}
  rm -v ${pkgdir}/usr/lib/lib*.so*
}