PKGBUILDs/extra/babl/PKGBUILD

42 lines
899 B
Bash
Raw Normal View History

2018-03-25 01:07:37 +00:00
# $Id$
# Maintainer: Daniel Isenmann <daniel@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - revert to configure/make, meson build not ARM friendly
pkgname=babl
2018-04-18 12:28:50 +00:00
pkgver=0.1.46
pkgrel=1
2018-03-25 01:07:37 +00:00
pkgdesc="Dynamic, any to any, pixel format conversion library"
arch=(x86_64)
url="http://gegl.org/babl/"
license=(LGPL3)
depends=(glibc)
makedepends=(git meson)
2018-04-18 12:28:50 +00:00
_commit=e92ced2c54250af1dddb58f76ff1678d74a30dcf # tags/BABL_0_1_46^0
2018-03-25 01:07:37 +00:00
source=("git+https://git.gnome.org/browse/babl#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/^BABL_//;s/_/./g;s/-/+/g'
}
build() {
cd "${srcdir}/$pkgname"
NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd "${srcdir}/$pkgname"
make check
}
package() {
cd "${srcdir}/$pkgname"
make DESTDIR="${pkgdir}" install
}