[arch-projects] [netctl][PATCH] PKGBUILD: Build from git instead of tarballs

Daniel Wallace danielwallace at gtmanfred.com
Wed Feb 6 11:26:40 EST 2013


On Wed, Feb 06, 2013 at 05:22:50PM +0100, Florian Pritz wrote:
> Signed-off-by: Florian Pritz <bluewind at xinu.at>
> ---
>  Makefile         | 2 ++
>  contrib/PKGBUILD | 9 +++++++--
>  2 files changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index ad356e8..aa49652 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -2,6 +2,8 @@ export VERSION = 0.5
>  
>  .PHONY: install install-docs docs tarball pkgbuild clean
>  
> +all: docs
> +
>  install: install-docs
>  	# Configuration files
>  	install -d $(DESTDIR)/etc/netctl/{examples,hooks,interfaces}
> diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD
> index 14052ec..24f1002 100644
> --- a/contrib/PKGBUILD
> +++ b/contrib/PKGBUILD
> @@ -7,7 +7,7 @@ pkgdesc="Profile based systemd network management"
>  url="http://projects.archlinux.org/netctl.git/"
>  license=("GPL")
>  depends=("coreutils" "iproute2" "openresolv")
> -#makedepends=('asciidoc')  # The source tarball includes pre-built documentation.
> +makedepends=('asciidoc')
>  optdepends=('dialog: for the menu based wifi assistant'
>              'dhclient: for DHCP support (or dhcpcd)'
>              'dhcpcd: for DHCP support (or dhclient)'
> @@ -18,10 +18,15 @@ optdepends=('dialog: for the menu based wifi assistant'
>              'bridge-utils: for bridge connections'
>             )
>  conflicts=("netcfg")
> -source=(ftp://ftp.archlinux.org/other/netctl/netctl-${pkgver}.tar.xz)
> +source=(https://projects.archlinux.org/netctl.git/snapshot/netctl-${pkgver}.tar.gz)
You can't do this because the md5sum will change every time, for some
reason on cgit it still doesn't use gzip -n so if you check the output
of file on the archive, the time will continually change as a new
version gets downloaded, it needs to either use snapshots on the ftp,
which can be signed as well, or tar.xz or some other format needs to be
enabled for the cgit so that the times are stripped and the md5sum is
consistent.
>  arch=(any)
>  md5sums=('%md5sum%')
>  
> +build() {
> +  cd "$srcdir/netctl-${pkgver}"
> +  make
> +}
> +
>  package() {
>    cd "$srcdir/netctl-${pkgver}"
>    make DESTDIR="$pkgdir" install
> -- 
> 1.8.1.1

-- 
Daniel Wallace
Archlinux Trusted User (gtmanfred)
Georgia Institute of Technology
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20130206/5593b5f7/attachment.asc>


More information about the arch-projects mailing list