blob: 727fcfe4b801f5e17c8b424740725e8eeeb5d634 (
plain)
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
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="a simple FUSE filesystem for mounting Android devices as a MTP device"
HOMEPAGE="https://github.com/hanwen/go-mtpfs"
SRC_URI="https://github.com/hanwen/go-mtpfs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
virtual/libusb:1
virtual/udev
"
DEPEND="${RDEPEND}
media-libs/libmtp
"
#Tests require a connected mtp device
RESTRICT+=" test"
src_compile() {
ego build -ldflags '-extldflags=-fno-PIC' .
}
src_test() {
ego test -ldflags '-extldflags=-fno-PIC' fs usb mtp
}
src_install() {
dobin go-mtpfs
dodoc README.md
}
|