-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PKGBUILD and DKMS to make it easier for arch users.. #36
base: main
Are you sure you want to change the base?
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-binder Should 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. |
I'm starting to feel quite happy with the PR. The only things I'm really missing is a better versioning system like I'm opening the PR for reviews. For testing purposes, change out every instance of |
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-binder Other 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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