1
0
flewkey-overlay/media-libs/soundpipe/soundpipe-9999.ebuild
Ryan Fox ed024523fe
media-libs/soundpipe: New package
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Ryan Fox <flewkey@2a03.party>
2021-02-25 01:54:53 +00:00

29 lines
611 B
Bash

# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3
EGIT_REPO_URI="https://git.sr.ht/~pbatch/soundpipe"
DESCRIPTION="A lightweight music DSP library"
HOMEPAGE="https://pbat.ch/proj/soundpipe.html"
LICENSE="MIT"
SLOT="0"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_prepare() {
default
sed -i 's/\/usr\/local\//$(DESTDIR)$(PREFIX)\//g' "${S}/Makefile"
sed -i 's/\/lib/\/$(LIBDIR)/g' "${S}/Makefile"
}
src_install() {
dodir /usr/include
dodir "/usr/$(get_libdir)"
emake DESTDIR="${D}" PREFIX="/usr" LIBDIR="$(get_libdir)" install
}