From 106ece85bbe0ec3920f06ef7d0b7d447c294a044 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 24 Apr 2022 20:34:03 +0200 Subject: extra/librsvg-og: temporary hotfix for breaking API changes --- community/librsvg-og/PKGBUILD | 41 -------------------------------- extra/librsvg-og/PKGBUILD | 54 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 41 deletions(-) delete mode 100644 community/librsvg-og/PKGBUILD create mode 100644 extra/librsvg-og/PKGBUILD diff --git a/community/librsvg-og/PKGBUILD b/community/librsvg-og/PKGBUILD deleted file mode 100644 index 7ec1b843..00000000 --- a/community/librsvg-og/PKGBUILD +++ /dev/null @@ -1,41 +0,0 @@ -# Maintainer: Andreas Baumann - -pkgname=librsvg-og -pkgver=2.40.20 -pkgrel=1 -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") -sha256sums=('5bcbd8aa34a81478f990dc62a308ee2a42ff89a4e2bc905c09fd68f525bf5643') - -prepare() { - cd ${pkgname}-${pkgver} - NOCONFIGURE=1 ./autogen.sh -} - -build() { - cd ${pkgname}-${pkgver} - ./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} - # Test suite is very dependent on the versions of - # Cairo, Pango, FreeType and HarfBuzz - make check || : -} - -package() { - cd ${pkgname}-${pkgver} - make DESTDIR="$pkgdir" install -} diff --git a/extra/librsvg-og/PKGBUILD b/extra/librsvg-og/PKGBUILD new file mode 100644 index 00000000..215cf59a --- /dev/null +++ b/extra/librsvg-og/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Andreas Baumann + +pkgname=librsvg-og +pkgver=2.40.20+20+g79890f60 +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=79890f607a8e489e631708fe16ffbaf52780960a # 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 +} -- cgit v1.2.3-70-g09d2