On Wed, Feb 06, 2013 at 05:22:50PM +0100, Florian Pritz wrote:
> Signed-off-by: Florian Pritz <[email protected]>
> ---
>  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

Attachment: pgpvz49cEeemI.pgp
Description: PGP signature

Reply via email to