kmod update
This commit is contained in:
1 parent
f9d42ce0aa
commit
478e4138bb
1 file changed
+14
-20
+14
-20
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
name='kmod'
|
name='kmod'
|
||||||
release='2'
|
release='3'
|
||||||
version='31'
|
version='34'
|
||||||
url='https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git'
|
url='https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git'
|
||||||
description='library and tools for managing linux kernel modules'
|
description='library and tools for managing linux kernel modules'
|
||||||
email='aliriza.keskin@pardus.org.tr'
|
email='aliriza.keskin@pardus.org.tr'
|
||||||
@@ -10,7 +10,7 @@ license=('GPLv3')
|
|||||||
source=("https://mirrors.edge.kernel.org/pub/linux/utils/kernel/kmod/kmod-$version.tar.xz")
|
source=("https://mirrors.edge.kernel.org/pub/linux/utils/kernel/kmod/kmod-$version.tar.xz")
|
||||||
depends=(zlib xz-utils)
|
depends=(zlib xz-utils)
|
||||||
makedepends=()
|
makedepends=()
|
||||||
md5sums=('6165867e1836d51795a11ea4762ff66a')
|
sha256sums=('12e7884484151fbd432b6a520170ea185c159f4393c7a2c2a886ab820313149a')
|
||||||
group=(sys.apps)
|
group=(sys.apps)
|
||||||
uses=()
|
uses=()
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
@@ -19,29 +19,23 @@ export PATH=$HOME:$PATH
|
|||||||
|
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
|
||||||
prepare(){
|
|
||||||
# skip building gtk doc
|
|
||||||
touch libkmod/docs/gtk-doc.make
|
|
||||||
}
|
|
||||||
|
|
||||||
setup(){
|
setup(){
|
||||||
./configure --prefix=/usr \
|
meson setup build --prefix=/usr \
|
||||||
--libdir=/lib64/ \
|
--bindir=/bin \
|
||||||
--bindir=/sbin
|
--sbindir=/sbin \
|
||||||
# remove xsltproc dependency
|
--libdir=/lib64 \
|
||||||
rm -f man/Makefile
|
-Dopenssl=enabled \
|
||||||
echo -e "all:\ninstall:" > man/Makefile
|
-Dmanpages=false \
|
||||||
|
-Dxz=enabled \
|
||||||
|
-Dzlib=enabled \
|
||||||
|
-Dzstd=disabled
|
||||||
}
|
}
|
||||||
|
|
||||||
build(){
|
build(){
|
||||||
make $jobs
|
ninja -C build $jobs
|
||||||
}
|
}
|
||||||
|
|
||||||
package(){
|
package(){
|
||||||
make install $jobs
|
ninja -C build install $jobs
|
||||||
mkdir -p ${DESTDIR}/usr/bin
|
|
||||||
for tool in {ins,ls,rm,dep}mod mod{probe,info}; do
|
|
||||||
ln -s kmod "${DESTDIR}/sbin/$tool"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user