summaryrefslogtreecommitdiff
path: root/extra/librsvg-og/PKGBUILD
blob: 09ea7cf2c8048ff1d4072bf7110316a68cc2095d (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: Andreas Baumann <mail@andreasbaumann.cc>

pkgname=librsvg-og
pkgver=2.40.20+23+gd4d3d4fc
pkgrel=2
epoch=1
pkgdesc="SVG rendering library old gen"
url="https://github.com/oaken-source/librsvg-og"
arch=(i486 i686 pentium4 x86_64)
license=(LGPL)
depends=(gdk-pixbuf2 pango libcroco)
conflicts_i486=(libsrvg)
makedepends=(gobject-introspection gtk-doc git)
provides_i486=(librsvg=${pkgver} librsvg-${pkgver%%.*}.so)
#source=("https://github.com/oaken-source/librsvg-og/archive/2.40.20.tar.gz")
_commit=d4d3d4fc2c38550f3fbeed06ad2c39354cfddff0  # branch api2
source=("git+https://github.com/andreasbaumann/librsvg-og.git#commit=$_commit")

#sha256sums=('5bcbd8aa34a81478f990dc62a308ee2a42ff89a4e2bc905c09fd68f525bf5643')
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/^orc-//;s/-/+/g'
}

prepare() {
#  cd ${pkgname}-${pkgver}
  cd $pkgname
  NOCONFIGURE=1 ./autogen.sh
}

build() {
#  cd ${pkgname}-${pkgver}
  cd $pkgname
  ./configure --prefix=/usr --disable-static --disable-vala \
    --enable-gtk-doc
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
  make
}

check() {
#  cd ${pkgname}-${pkgver}
  cd $pkgname
  # Test suite is very dependent on the versions of
  # Cairo, Pango, FreeType and HarfBuzz
  make check || :
}

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