[aur-general] PKGBUILD(s) Review

Ankit R Gadiya arch at argp.in
Thu Feb 22 17:09:43 UTC 2018


On 02/22/2018 08:13 PM, Doug Newgard via aur-general wrote:
> On Thu, 22 Feb 2018 19:45:48 +0530
> Ankit R Gadiya <arch at argp.in> wrote:
> 
>> Hi everyone,
>>
>> I added two new PKGBUILD(s) today in the AUR, both are plugins for vim.
>> Any advice, suggestions or feedback will be greatly appreciated.
>> And if anybody would like the *-git versions of these I will be more
>> then happy to add them as well.
>>
>> 1. ranger-vim: https://aur.archlinux.org/packages/ranger-vim/
>> 2. tcomment-vim: https://aur.archlinux.org/packages/tcomment-vim/
>>
>> Ranger-vim
>> # Maintainer: Ankit R Gadiya <arch at argp.in>
>>
>> pkgname=ranger-vim
>> pkgver=2.0
>> pkgrel=1
>> pkgdesc="Ranger integration for vim"
>> license=('MIT')
> 
> MIT license is required to be installed in the filesystem, but I don't see that
> done below.
I added it.

>> arch=('any')
>> url="https://github.com/francoiscabrol/ranger.vim"
>> depends=('vim' 'ranger')
>> groups=('vim-plugins')
>> source=("https://github.com/francoiscabrol/${pkgname/-/.}/archive/${pkgver}.tar.gz")
> 
> You need to rename this file. A file named "2.0.tar.gz" is far too generic if
> people are using SRCDEST.
Fixed that.

>> md5sums=('59f24462eb5c7561756a646585cd9e4c')
>>
>> package() {
>>     install -Dm755 "${srcdir}/${pkgname/-/.}-${pkgver}/plugin/ranger.vim" \
>> 		"${pkgdir}/usr/share/vim/vimfiles/plugin/ranger.vim"
> 
> You can omit the ${srcdir} here if you'd like, functions will always start there.
> You can also omit the last ranger.vim if you use the -t switch. Both of these are
> optional.
Fixed ${srcdir}, I'm not familiar with switches of install so I'll stick
with it right now, until i'll read about it.

>> }
>>
>> tcomment-vim
>> # Maintainer: Ankit R Gadiya <arch at argp.in>
>>
>> pkgname=tcomment-vim
>> pkgver=3.08.1
>> pkgrel=1
>> pkgdesc="An extensible & universal comment vim-plugin that also
>> handles embedded filetypes"
> 
> Is this a wrapping issue or is this really 2 lines?
No, but is there a problem with multiline description?

>> license=('GPL3')
>> arch=('any')
>> url="https://github.com/tomtom/tcomment_vim"
>> depends=('vim')
>> groups=('vim-plugins')
>> source=("https://github.com/tomtom/${pkgname/-/_}/archive/${pkgver}.tar.gz")
> 
> Same as with the other PKGBUILD
Fixed this.

>> md5sums=('6ea8f4ce78411efba444a0218e111219')
>>
>> package() {
>>
>> 	install -d "${pkgdir}/usr/share/vim/vimfiles/"{doc,plugin,autoload}
> 
> This doesn't do anything. The -D switch on the following commands will take care of it.
Removed the line.
>>
>> 	install -Dm755 "${srcdir}/${pkgname/-/_}-${pkgver}/plugin/tcomment.vim" \
>> 		"${pkgdir}/usr/share/vim/vimfiles/plugin/tcomment.vim"
>> 	install -Dm755 "${srcdir}/${pkgname/-/_}-${pkgver}/doc/tcomment.txt" \
>> 		"${pkgdir}/usr/share/vim/vimfiles/doc/tcomment.txt"
>> 	install -Dm755 "${srcdir}/${pkgname/-/_}-${pkgver}/autoload/tcomment.vim" \
>> 		"${pkgdir}/usr/share/vim/vimfiles/autoload/tcomment.vim"
> 
> Same as other PKGBUILD.
Added License

>> }
>>
> 

Thanks for your review I fixed almost all of the things in the updated
PKGBUILD.

-- 
Ankit R Gadiya

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


More information about the aur-general mailing list