PKGBUILD and DKMS to make it easier for arch users..#36
PKGBUILD and DKMS to make it easier for arch users..#36Gnarus-G merged 22 commits intoGnarus-G:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@pxlsec Very much appreciate you working on this. Now, I hate to be that guy but I want some better commit messages. Something like:
And, lol, I love that you're using the one true editor but that doesn't need to be part of the commit message. So please rebase those commits when you can. P.S. This how PR #35 is and I like it. My previous commits were in a different style which I am moving away from. |
typo >:(
Remove support for ver < 0.1.5 in PKGBUILD Remove sudo from .install file Update .install to account for upgrades
Haha, don't worry. As long as you had a good laugh I'm happy. Besides I need to learn how to use git & github properly anyways. The good:
The bad
|
|
Seems promising. Btw is it not possible to reuse the current install/uninstall scripts in the dkms configs or PKGBUILD? |
|
Since this will be managed by the package manager it would be fine(and should) to use Also |
You can just download the PKGBUILD directly.
You should inform in the Also move these lines from
Broken in what way? if [ -d "$srcdir"/maccel/cli/target/release ]; then
BUILDTAR="release"
elif [ -d "$srcdir"/maccel/cli/target/debug ]; then
BUILDTAR="debug"
else
echo "There's either no build or it's a different build than we are expecting."
return 1
fi
install -Dm 755 "$srcdir"/maccel/cli/target/"$BUILDTAR"/maccel "${pkgdir}"/usr/local/bin/maccel
install -Dm 755 "$srcdir"/maccel/cli/usbmouse/target/"$BUILDTAR"/maccel-driver-binder "${pkgdir}"/usr/local/bin/maccel-driver-binderShould also almost always quote variables or the entire path. |
If you mean execute them then, |
Perhaps make a Contribution section in the readme or separate file for this. |
|
BTW @MCPO-Spartan-117 and @pxlsec, you're welcome to join maccel's discord server. I'd be happy to chat with you there should you ever want to. |
Add ensurance message to install script
|
Only things i can see this needs now is quoting variable paths and debug build handling for the CLI in the PKG, something like this. if [ -d "$srcdir"/maccel/cli/target/release ]; then
BUILDTAR="release"
elif [ -d "$srcdir"/maccel/cli/target/debug ]; then
BUILDTAR="debug"
else
echo "There's either no build or it's a different build than we are expecting."
return 1
fi
install -Dm 755 "$srcdir"/maccel/cli/target/"$BUILDTAR"/maccel "${pkgdir}"/usr/bin/maccel
install -Dm 755 "$srcdir"/maccel/cli/usbmouse/target/"$BUILDTAR"/maccel-driver-binder "${pkgdir}"/usr/bin/maccel-driver-binderOther than that it seems ready to merge. |
|
Correct me if im wrong, but this way of handling debug builds seems like a very hacky approach and I'm not sure I like it..
However if I'm not mistaken, you should be able to build release mode with debug info. This way the PKGBUILD can strip to get a regular release and you could have debug info if enabled in makepkg.conf. |
|
|
Yeah, It's done. I also added some stuff recommended by the arch wiki for rust packages. I tested building the package with
In summary, it seems to be working just fine. Further testing might be necessary however, as debugability might be worse with an optimized build. |
MCPO-Spartan-117
left a comment
There was a problem hiding this comment.
Haven't tested the PKG but i don't see any reason it would fail, DKMS works fine, the debug stuff and module path is up to @Gnarus-G.
What module path are we talking about? |
|
@pxlsec What's the whole point of the debug setting and where do you set it? |
I took the time to rewrite some of the build system to make it easier to install, and maybe even possible to publish to the AUR. Anyways, I did some changes to the Makefile inside of the driver folder, so I have no clue if the original install script works properly at the moment. But ill take a look when I get some time left over.
Cheers <3