Re: PKGBUILD work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Am 05.02.2011 16:17, schrieb Bernardo Barros:
> yep!
> 
> could you give an example of a bash function that gets the $pkgver from a file?
> 

Just paste Gaetans two lines into a file:
	. `pwd`/PKGBUILD
	echo $pkgver
Save it in a directory which is in your PATH variable and make it
executeable.
If you mean with file an archive from AUR, then you have to untar it first:
	tar -xzf `pwd`/$1.tar.gz
	cd `pwd`/$1
	. `pwd`/PKGBUILD
	echo $pkgver
	# Clean up
	cd ..
	rm -r $1
You must call this script with the package name obtained, e.g.
	pkgver dccnightmare


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux