testing/babeltrace: use default $builddir and prepare()

parent 14e508da
......@@ -14,20 +14,8 @@ install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.efficios.com/files/$pkgname/$pkgname-$pkgver.tar.bz2"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--prefix=/usr \
--disable-debug-info \
......@@ -37,7 +25,7 @@ build() {
}
package() {
cd "$_builddir"
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment