PKGBUILDs/extra/orc/PKGBUILD

49 lines
1.1 KiB
Bash
Raw Normal View History

2014-09-19 19:02:59 +00:00
# $Id$
2017-05-06 17:07:14 +00:00
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
2017-02-13 13:19:46 +00:00
# Maintainer: Jan de Groot <jgc@archlinux.org>
2016-08-31 15:16:18 +00:00
# Contributor: Ionut Biru <ibiru@archlinux.org>
2014-09-19 19:02:59 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - drop valgrind makedepend
pkgname=orc
2017-05-06 17:07:14 +00:00
pkgver=0.4.26+2+g249c709
pkgrel=1
2016-08-31 15:16:18 +00:00
pkgdesc="Optimized Inner Loop Runtime Compiler"
2017-05-06 17:07:14 +00:00
url="https://cgit.freedesktop.org/gstreamer/orc"
2016-08-31 15:16:18 +00:00
arch=(i686 x86_64)
license=(custom)
depends=(glibc)
2017-05-06 17:07:14 +00:00
makedepends=(git gtk-doc)
_commit=249c709e90458ecef7a068df553ea41a83eedf0f # master
source=("git+https://anongit.freedesktop.org/git/gstreamer/orc#commit=$_commit")
sha256sums=('SKIP')
2014-09-19 19:02:59 +00:00
2017-05-06 17:07:14 +00:00
pkgver() {
cd $pkgname
git describe --tags | sed 's/^orc-//;s/-/+/g'
}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd $pkgname
./configure --prefix=/usr --disable-static --enable-gtk-doc
2016-06-18 17:53:53 +00:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
2014-09-19 19:02:59 +00:00
}
check() {
2017-05-06 17:07:14 +00:00
cd $pkgname
2016-06-18 17:53:53 +00:00
make check
2014-09-19 19:02:59 +00:00
}
package() {
2017-05-06 17:07:14 +00:00
cd $pkgname
2016-06-18 17:53:53 +00:00
make DESTDIR="$pkgdir" install
2016-08-31 15:16:18 +00:00
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
2014-09-19 19:02:59 +00:00
}