Install this version:
emerge -a =dev-libs/libshake-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/libshake-9999
Or alternatively:
emerge --autounmask-write -a =dev-libs/libshake-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | ~amd64 | 0 |
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/zear/libShake.git"
else
SRC_URI="https://github.com/zear/libShake/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
MY_PN="libShake"
MY_P="${MY_PN}-${PV}"
S="${WORKDIR}/${MY_P}"
fi
DESCRIPTION="Simple, cross-platform haptic library."
HOMEPAGE="https://github.com/zear/libShake"
LICENSE="MIT"
SLOT="0"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_prepare() {
default
sed -i 's/\/lib/\/$(LIBDIR)/g' "${S}/Makefile"
}
src_compile() {
emake BACKEND="LINUX" all
}
src_install() {
dodir /usr/$(get_libdir)
dodir /usr/include
emake DESTDIR="${D}" PREFIX="/usr" LIBDIR="$(get_libdir)" BACKEND="LINUX" install
}