From 9371e11f4f155fa4278d23d9690e7373d3964c43 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 15 Apr 2024 17:23:54 +0000 Subject: system/mdevd: simplify APKBUILD --- system/mdevd/APKBUILD | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/system/mdevd/APKBUILD b/system/mdevd/APKBUILD index e9ea9cf21..94e05d5d0 100644 --- a/system/mdevd/APKBUILD +++ b/system/mdevd/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Laurent Bercot pkgname=mdevd pkgver=0.1.6.3 -pkgrel=0 +pkgrel=1 pkgdesc="A small uevent manager daemon" url="https://skarnet.org/software/mdevd/" arch="all" @@ -20,23 +20,14 @@ build() { package() { make DESTDIR="$pkgdir" install - mkdir -p -m 0755 "$pkgdir/etc/init.d" + mkdir -p -m 0755 "$pkgdir/etc/init.d" "$pkgdir/usr/share/doc" cp -f "$srcdir/mdev.conf" "$pkgdir/etc/" chmod 0644 "$pkgdir/etc/mdev.conf" cp -f "$srcdir/mdevd.initd" "$pkgdir/etc/init.d/mdevd" chmod 0755 "$pkgdir/etc/init.d/mdevd" + cp -a "$builddir/doc" "$pkgdir/usr/share/doc/$pkgname" } - -doc() { - pkgdesc="$pkgdesc (documentation)" - depends= - install_if="docs $pkgname=$pkgver-r$pkgrel" - mkdir -p "$subpkgdir/usr/share/doc" - cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname" -} - - openrc() { rldir="$subpkgdir"/etc/runlevels/sysinit svcdir="$subpkgdir/etc/s6-linux-init/current/run-image/service/mdevd" -- cgit v1.2.3-70-g09d2