blob: 7b05035ea672f48d706d0fe7acc7e0b5074bbe94 (
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
40
41
42
43
44
45
46
47
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools udev
DESCRIPTION="A utility for accessing various Rio media players"
HOMEPAGE="https://github.com/hjelmn/rioutil"
SRC_URI="https://github.com/hjelmn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+ LGPL-2.1+"
SLOT="0"
KEYWORDS="amd64 ppc x86"
RDEPEND="virtual/libusb:1"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
# Don't use hardcoded '/lib' libpath
sed -e '/libdir/d' -i Makefile.am -i librioutil/Makefile.am || die
eautoreconf
}
src_configure() {
econf --disable-static
}
src_install() {
default
udev_dorules "${FILESDIR}"/75-rio.rules
find "${D}" -name '*.la' -type f -delete || die
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}
|