aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmtp/APKBUILD
blob: 7a124953978605731d4bdbf77fce19c2674eeeda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmtp
pkgver=1.1.18
pkgrel=0
pkgdesc="Software library for MTP media players"
url="http://libmtp.sourceforge.net"
arch="all"
license="LGPL-2.0-or-later"
depends_dev="libusb-compat-dev"
makedepends="$depends_dev eudev-dev"
subpackages="$pkgname-dev $pkgname-examples"
source="http://download.sourceforge.net/libmtp/libmtp-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-udev=/lib/udev
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

examples() {
	pkgdesc="Example programs for libmtp"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

sha512sums="1a8d503effd83217c339a1aea3a16954d718059edf3110cb2f21cff74cdd1243e7f4880d4e12f8fbdc9a5deed366c4151babe6ecd6f4cf4b7330a27e27bf7cc8  libmtp-1.1.18.tar.gz"