mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-12 19:32:31 +01:00
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libmtp
|
|
pkgver=1.1.6
|
|
pkgrel=0
|
|
pkgdesc="A software library for MTP media players"
|
|
url="http://libmtp.sourceforge.net/"
|
|
arch="all"
|
|
license="LGPLv2+"
|
|
depends=""
|
|
depends_dev="libusb-compat-dev"
|
|
makedepends="$depends_dev udev-dev libiconv-dev"
|
|
install=""
|
|
subpackages="$pkgname-dev $pkgname-examples"
|
|
source="http://download.sourceforge.net/libmtp/libmtp-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/libmtp-$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"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
rm -f "$pkgdir"/usr/lib/*.la
|
|
}
|
|
|
|
examples() {
|
|
pkgdesc="Example programs for libmtp"
|
|
mkdir -p "$subpkgdir"/usr
|
|
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
|
|
}
|
|
|
|
md5sums="87835626dbcf39e62bfcdd4ae6da2063 libmtp-1.1.6.tar.gz"
|
|
sha256sums="3a1c1c83af91de4052eb54feb795c141b4c04a252e0031954ebbf6175970cb0a libmtp-1.1.6.tar.gz"
|
|
sha512sums="fe6d9bc0621d6ad2325164585ec5f3e20824add5ee763d6d14ba7dbea6d2aacd75afa450627f3a03691c33ffb92675abebce64c3f8e32e8c2db511e814207ab3 libmtp-1.1.6.tar.gz"
|