exherbo-impulze/packages/sys-apps/usbip/usbip-scm.exheres-0
2013-10-07 11:49:56 +02:00

23 lines
592 B
Bash

# Copyright 2008 Daniel Mierswa <impulze@impulze.org>
# Distributed under the terms of the GNU General Public License v2
SCM_REPOSITORY="https://svn.code.sf.net/p/${PN}/code/obsolete/linux"
require usbip scm-svn
DOWNLOADS=""
SLOT="0"
PLATFORMS="~amd64 ~x86"
DEFAULT_SRC_CONFIGURE_PARAMS+=( --includedir=/usr/include )
src_prepare() {
edo sed \
-e "/^AM_CFLAGS = /s:= := -DUSBIDS_FILE='\"@USBIDS_DIR@/usb.ids\"' :" \
-i Makefile.am
edo sed \
-e '/usbip_stub_driver_name =/s:usbip-host:usbip:' \
-i libsrc/stub_driver.c
autotools_src_prepare
}