diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-07-20 09:56:54 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-07-20 09:56:54 +0000 |
commit | bf03dbfaf19de6969fa6289b7e6f656b0fe04211 (patch) | |
tree | 6b5c4064d173e08f9bfb133127f5c77e50cd36e8 /main/libmtp/APKBUILD | |
parent | b327c9948c46a454aa0e3a310b9d46918f9d98d4 (diff) | |
download | aports-bf03dbfaf19de6969fa6289b7e6f656b0fe04211.tar.bz2 aports-bf03dbfaf19de6969fa6289b7e6f656b0fe04211.tar.xz |
main/libmtp: set correct path for udev, added check()
Diffstat (limited to 'main/libmtp/APKBUILD')
-rw-r--r-- | main/libmtp/APKBUILD | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/main/libmtp/APKBUILD b/main/libmtp/APKBUILD index d7a741ae3e..bd020e4637 100644 --- a/main/libmtp/APKBUILD +++ b/main/libmtp/APKBUILD @@ -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() { |