[aur-general] Request to check my PKGBUILD and suggest me some improvements

Alad Wenter alad at archlinux.info
Sat Aug 13 20:22:45 UTC 2016


Op 13.08.2016 om 22:18 schreef Patrick Eigensatz via aur-general:
> Hello Alad, Hello Dan
>
> Thank you very much for your ideas. I just pushed a new version of the
> PKGBUILD
> here:
>
> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=qjournalctl
>
>
> Are there further improvements? The point with the substitutions of $pkgver
> seems very handy to me!
>
>
> Thank you!
>
>
>
>
> Dan B via aur-general <aur-general at archlinux.org> schrieb am Sa., 13. Aug.
> 2016 um 21:58 Uhr:
>
>> Remove the "make -j 9" line. I'll review the rest in a sec
>>
>> On Aug 13, 2016 2:47 PM, "Patrick Eigensatz via aur-general" <
>> aur-general at archlinux.org> wrote:
>>
>>> Hello folks!
>>>
>>> I am a beginner in Arch packaging but I just came to a stable point
>> writing
>>> my small systemd journal analyzer and beeing a Arch user for some years
>> now
>>> I thought it would
>>> be a good exercise for me to write a PKGBUILD for my program and try to
>>> upload it to the AUR.
>>>
>>> It is now online @ https://aur.archlinux.org/packages/qjournalctl/
>>>
>>>
>>> I followed the wiki guidelines
>>>  @
>>> https://wiki.archlinux.org/index.php/Arch_User_
>>> Repository#Submitting_packages
>>>
>>> I read myself into the
>>>  @ https://wiki.archlinux.org/index.php/Arch_packaging_standards
>>> and into
>>>  @ https://wiki.archlinux.org/index.php/PKGBUILD
>>>
>>> and I tried to follow all the suggestions there and I kept my PKGBUILD as
>>> tiny
>>> as possible.
>>>
>>> I also runned namcap to check my PKGBUILD respectively the generated
>>> package.
>>> As I had some dependencies (namely qt5-base and gcc-multilibs) I listed
>>> them in the PKGBUILD.
>>>
>>>
>>> I tried to have a look at other PKGBUILDs as well and to compare it to
>> mine
>>> but I could not find something which would really differ from my first
>>> trial.
>>>
>>> Then I read I could ask here for suggestions and improvements.
>>> Is there something I didn't do which is e.g. a good habit? Or did I
>>> something that I shouldn't have done?
>>>
>>>
>>> I hope some experienced AUR packagers / TUs can give me a few points I
>> can
>>> work on. Feel free to give me feedback on my program as well! ;)
>>>
>>>
>>> Thank you very much!
>>> Patrick
>>>
Looks good. Note that you can leave out the mkdir line, by appending the
-D option to install. i.e.

install -Dm755 "$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname"

or

install -Dm755 "$pkgname-$pkgver/$pkgname" -t "$pkgdir/usr/bin"

The -t variant also works with multiple files, should you ever need to
do that.

Alad


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20160813/b4f72524/attachment-0001.asc>


More information about the aur-general mailing list