From bf64f261d5f8bf0c95c5162d1a1d322727e947a2 Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Thu, 22 Jun 2017 16:20:44 -0400 Subject: [PATCH] compton-git: remove do_fetch in favor of distfiles --- srcpkgs/compton-git/template | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/srcpkgs/compton-git/template b/srcpkgs/compton-git/template index 7bc6718982f..6d9067d17e8 100644 --- a/srcpkgs/compton-git/template +++ b/srcpkgs/compton-git/template @@ -11,18 +11,14 @@ maintainer="Juan RP " homepage="https://github.com/chjj/compton" license="MIT" short_desc="A compositor for X (fork of xcompmgr-dana)" +_githash=316eac0613bf342ff91cc645a6c3c80e6b9083fb +distfiles="${homepage}/archive/${_githash}.tar.gz>${pkgname}-${version}.tar.gz" +checksum=b0bb9dfcf47d21d6711c9544f01a92b8491b77d79c6462ec1ddfb4c7a930e9df +wrksrc="compton-${_githash}" provides="compton-${version}_${revision}" replaces="compton>=0" -do_fetch() { - local url="git://github.com/chjj/compton.git" - msg_normal "Fetching source from $url ...\n" - git clone ${url} ${wrksrc} - cd ${wrksrc} - git reset --hard 316eac0613bf342ff91cc645a6c3c80e6b9083fb -} - post_install() { vlicense LICENSE }