Commit bf03dbfa authored by Francesco Colista's avatar Francesco Colista
Browse files

main/libmtp: set correct path for udev, added check()

parent b327c994
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmtp
pkgver=1.1.13
pkgrel=0
pkgrel=1
pkgdesc="A software library for MTP media players"
url="http://libmtp.sourceforge.net/"
arch="all"
......@@ -13,20 +13,15 @@ makedepends="$depends_dev eudev-dev"
install=""
subpackages="$pkgname-dev $pkgname-examples"
source="http://download.sourceforge.net/libmtp/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
_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
check() {
cd "$builddir"
make check
}
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -35,13 +30,13 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
--with-udev=/lib/udev
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
}
examples() {
......
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