URI: 
       0xFFFF-9999.ebuild - parlay - yet another gentoo overlay
  HTML git clone https://git.parazyd.org/parlay
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
       0xFFFF-9999.ebuild (1014B)
       ---
            1 # Copyright 1999-2025 Gentoo Authors
            2 # Distributed under the terms of the GNU General Public License v2
            3 
            4 EAPI=8
            5 
            6 inherit git-r3
            7 
            8 DESCRIPTION="Open Free Fiasco Firmware Flasher for Maemo devices"
            9 HOMEPAGE="https://github.com/pali/0xFFFF"
           10 EGIT_REPO_URI="https://github.com/pali/0xFFFF"
           11 SRC_URI="https://download.sourceforge.net/libusb/libusb-0.1.12.tar.gz"
           12 
           13 LICENSE="GPL-3"
           14 SLOT="0"
           15 
           16 src_unpack() {
           17         git-r3_src_unpack
           18         default
           19 }
           20 
           21 src_prepare() {
           22         default
           23 
           24         cd "${WORKDIR}/${P}/src" || die
           25         sed -e 's@^CFLAGS .*@& -static@' \
           26                 -e 's@^LIBS .*@LIBS += -L./ ./libusb.a -ldl -static@' \
           27                 -i Makefile || die
           28 }
           29 
           30 src_configure() {
           31         cd "${WORKDIR}/libusb-0.1.12" || die
           32 
           33         CFLAGS="-Wno-format-truncation" \
           34                 econf \
           35                         --enable-static \
           36                         --disable-shared
           37 }
           38 
           39 src_compile() {
           40         cd "${WORKDIR}/libusb-0.1.12" || die
           41         emake || die
           42 
           43         cp .libs/libusb.a "${WORKDIR}/${P}/src" || die
           44 
           45         cd "${WORKDIR}/${P}" || die
           46         emake || die
           47 }
           48 
           49 src_install() {
           50         emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install || die
           51         dodoc README doc/*
           52 }