compton-git: remove do_fetch in favor of distfiles

This commit is contained in:
Toyam Cox 2017-06-22 16:20:44 -04:00
parent 3d32ceb7e9
commit bf64f261d5
1 changed files with 4 additions and 8 deletions

View File

@ -11,18 +11,14 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
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
}