From 44fdcf0304380c6f5dcd1cd954ab489b2e8689f4 Mon Sep 17 00:00:00 2001 From: Clayton Craft <clayton@craftyguy.net> Date: Wed, 25 Sep 2024 13:29:54 -0700 Subject: [PATCH] modem/samsungipcd: create openrc subpackage (MR 5635) --- modem/samsungipcd/APKBUILD | 10 +++++++--- ...cd.post-install => samsungipcd-openrc.post-install} | 0 2 files changed, 7 insertions(+), 3 deletions(-) rename modem/samsungipcd/{samsungipcd.post-install => samsungipcd-openrc.post-install} (100%) diff --git a/modem/samsungipcd/APKBUILD b/modem/samsungipcd/APKBUILD index 6d1e2b3da96..038f9419c34 100644 --- a/modem/samsungipcd/APKBUILD +++ b/modem/samsungipcd/APKBUILD @@ -1,20 +1,19 @@ # Maintainer: sleirsgoevy <sleirsgoevy@gmail.com> pkgname=samsungipcd pkgver=0.2.3 -pkgrel=0 +pkgrel=1 pkgdesc="AT modem emulation using libsamsung-ipc" url="https://gitlab.com/sleirsgoevy/samsungipcd" arch="all" license="GPL-2.0-or-later" depends="libsamsung-ipc ppp networkmanager-ppp" makedepends="libsamsung-ipc gcc make" +subpackages="$pkgname-openrc" source=" samsungipcd-v$pkgver.tgz::$url/-/archive/v$pkgver/samsungipcd-v$pkgver.tar.gz - samsungipcd.post-install samsungipcd.sh 90-ttywc.rules " -install="$pkgname.post-install" builddir="$srcdir/samsungipcd-v$pkgver" options="!check" @@ -29,6 +28,11 @@ package() { install -Dm644 "$srcdir/90-ttywc.rules" "$pkgdir/lib/udev/rules.d/90-ttywc.rules" } +openrc() { + install_if="$pkgname=$pkgver-r$pkgrel openrc" + install="$subpkgname.post-install" +} + sha512sums=" edf6e9f887bddc93daadbf1da05ef1ab75db4f3350d1b0fbbf1e90a9dd32dd3d13642aab83b50b5a43bac66889c982f40952b9f7351354a13525dde7f33a7414 samsungipcd-v0.2.3.tgz c1935d7421eb6d529fb827c438902fdcd47ced974b237c0d63403b8b70d8f53966c29585f4ebc89c66f261dfa97e893f2816a43cf69ed69ca5bb1b1798c22a1d samsungipcd.post-install diff --git a/modem/samsungipcd/samsungipcd.post-install b/modem/samsungipcd/samsungipcd-openrc.post-install similarity index 100% rename from modem/samsungipcd/samsungipcd.post-install rename to modem/samsungipcd/samsungipcd-openrc.post-install -- GitLab