You are not logged in.

#1 2014-11-25 09:39:01

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

building vim using abs

Hi,
I am trying to build vim using abs because I want it to be built with x-clipboard support.
I am not very familiar with PKGBUILDs. The vim PKGBUILD seems to build all the vim packages but I only want to build the 'vim' package itself.
When I set

pkgname=('vim') 

I get an error during makepkg:

/home/arch/lukas/abs/vim/PKGBUILD: line 56: cd: /tmp/makepkg/vim/src/vim-runtime-build: No such file or directory

This directory does not exist because because I only want to build vim and not vim-runtime. I want to get vim runtime on the regular update way.

What am I missing here? Is it even possible to build only the vim package?


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#2 2014-11-25 09:46:54

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,548
Website

Re: building vim using abs

$ man makepkg
[...]
       --pkg <list>
           Only build listed packages from a split package. Multiple packages should be comma
           separated in the list. This option can be specified multiple times.
[...]

That said, it will still build everything, as there is only one build() function. You'll need to modify the build function if you really wan to avoid compiling everything. Alternatively, there's vim-x11 in the AUR if you really want to avoid installing gvim and compiling all the vim packages.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2014-11-25 16:15:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: building vim using abs


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-11-25 17:25:51

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: building vim using abs

dice wrote:

I want to get vim runtime on the regular update way.

What WorMzy said. You need to use --pkg. It still builds all packages but calls _install() only for the packages you specified.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#5 2014-11-25 21:55:57

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: building vim using abs

anatolik wrote:

What WorMzy said. You need to use --pkg. It still builds all packages but calls _install() only for the packages you specified.

Yes, but using specifying the package using this option leads to exactly the same error with the PKGBUILD from abs.

Actually this doesn't really matter anymore. I just installed gvim and everything is fine.
I was just curious if I did something wrong.

But I noticed that after building the whole thing, it is possible to then build just the vim package. Which is obviously unnecessary as one has built it already.


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

Board footer

Powered by FluxBB