summaryrefslogtreecommitdiff
path: root/user/libmtp
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-14 18:04:32 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-14 18:04:32 +0000
commit18aec9910b1a80d062c527ff70473dfe24b7bd50 (patch)
treeb9b61561ccfe43f8382e956c849edfa77782b459 /user/libmtp
parent3635bfd1eecb0fed8f0b64f5853e0819ddf9ab71 (diff)
downloadpackages-18aec9910b1a80d062c527ff70473dfe24b7bd50.tar.gz
packages-18aec9910b1a80d062c527ff70473dfe24b7bd50.tar.bz2
packages-18aec9910b1a80d062c527ff70473dfe24b7bd50.tar.xz
packages-18aec9910b1a80d062c527ff70473dfe24b7bd50.zip
user/libmtp: new package
Diffstat (limited to 'user/libmtp')
-rw-r--r--user/libmtp/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/libmtp/APKBUILD b/user/libmtp/APKBUILD
new file mode 100644
index 000000000..3f8e07b45
--- /dev/null
+++ b/user/libmtp/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libmtp
+pkgver=1.1.16
+pkgrel=0
+pkgdesc="Library for accessing MTP (Media Transfer Protocol) devices"
+url="http://libmtp.sourceforge.net/"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+makedepends="libgcrypt-dev libusb-dev"
+subpackages="$pkgname-dev"
+source="https://downloads.sourceforge.net/libmtp/libmtp-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="0540271930c1c932c5d06dcdd30142d407a4fadd022b195e8339d614fa3ec9b050605bf013b28ac6451f4dfcddf7add949c928acb1382802ab5fd6311c1628a0 libmtp-1.1.16.tar.gz"