mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Add eudev package
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
aede39f14d
commit
3907b48c1f
2 changed files with 39 additions and 4 deletions
33
pkg/eudev/build
Executable file
33
pkg/eudev/build
Executable file
|
@ -0,0 +1,33 @@
|
||||||
|
VERSION="3.2.5"
|
||||||
|
SRCDIR="eudev-${VERSION}"
|
||||||
|
TARBALL="${SRCDIR}.tar.gz"
|
||||||
|
URL="https://dev.gentoo.org/~blueness/eudev"
|
||||||
|
SHA256SUM="49c2d04105cad2526302627e040fa24b1916a9a3e059539bc8bb919b973890af"
|
||||||
|
DEPENDS="util-linux kmod xz zlib"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
local SOURCE="$1"
|
||||||
|
local DEPLOY="$2"
|
||||||
|
|
||||||
|
$SOURCE/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||||
|
--disable-split-usr --disable-selinux \
|
||||||
|
--disable-manpages --disable-mtd_probe \
|
||||||
|
--disable-static
|
||||||
|
|
||||||
|
make -j $NUMJOBS
|
||||||
|
}
|
||||||
|
|
||||||
|
deploy() {
|
||||||
|
local SOURCE="$1"
|
||||||
|
local DEPLOY="$2"
|
||||||
|
local DEVDEPLOY="$3"
|
||||||
|
|
||||||
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
split_dev_deploy "$DEPLOY" "$DEVDEPLOY"
|
||||||
|
rmdir "$DEPLOY/share"
|
||||||
|
}
|
10
util/misc.sh
10
util/misc.sh
|
@ -67,13 +67,15 @@ split_dev_deploy() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$1/lib/pkgconfig" ]; then
|
if [ -d "$1/lib/pkgconfig" ]; then
|
||||||
mkdir -p "$2/lib"
|
mkdir -p "$2/lib/pkgconfig"
|
||||||
mv "$1/lib/pkgconfig" "$2/lib"
|
mv $1/lib/pkgconfig/* "$2/lib/pkgconfig"
|
||||||
|
rmdir "$1/lib/pkgconfig"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$1/share/pkgconfig" ]; then
|
if [ -d "$1/share/pkgconfig" ]; then
|
||||||
mkdir -p "$2/lib"
|
mkdir -p "$2/lib/pkgconfig"
|
||||||
mv "$1/share/pkgconfig" "$2/lib"
|
mv $1/share/pkgconfig/* "$2/lib/pkgconfig"
|
||||||
|
rmdir "$1/share/pkgconfig"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for f in ${1}/lib/*.la; do
|
for f in ${1}/lib/*.la; do
|
||||||
|
|
Loading…
Reference in a new issue