diff options
author | Mikołaj Baranowski | 2017-07-25 00:46:41 +0200 |
---|---|---|
committer | Mikołaj Baranowski | 2017-07-25 00:46:41 +0200 |
commit | 26fd124004e57a4f8b6320ab03e877a374454c4f (patch) | |
tree | 00726267d868812399fe866e4f2b4dce212aa206 | |
parent | fd65bafc70bcf65a229edc40b5f5d05961453b6b (diff) | |
download | aur-26fd124004e57a4f8b6320ab03e877a374454c4f.tar.gz |
glide to manage dependencies, version 0.3
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 21 insertions, 30 deletions
@@ -1,14 +1,15 @@ pkgbase = wallpaper-switch pkgdesc = Runs in backgroud and changes Gnome backgroud to NASA picture of the day. - pkgver = 0.2.r0.g42536ed + pkgver = 0.3 pkgrel = 1 url = https://github.com/mikolajb/wallpaper-switch arch = x86_64 arch = i686 license = MIT makedepends = go - source = wallpaper-switch::git+http://github.com/mikolajb/wallpaper-switch - sha256sums = SKIP + makedepends = glide + source = wallpaper-switch-0.3::https://github.com/mikolajb/wallpaper-switch/archive/0.3.tar.gz + sha256sums = ef78605575b5466d4e0974a44efbb3b0c53542cbaa559cf9d3b01776e083da24 pkgname = wallpaper-switch @@ -1,46 +1,36 @@ # Maintainer: Mikołaj Baranowski <mikolajb@gmail.com> pkgname=wallpaper-switch -pkgver=0.2.r0.g42536ed +pkgver=0.3 pkgrel=1 pkgdesc='Runs in backgroud and changes Gnome backgroud to NASA picture of the day.' license=('MIT') arch=('x86_64' 'i686') url='https://github.com/mikolajb/wallpaper-switch' depends=() -makedepends=('go') -source=("${pkgname}::git+http://github.com/mikolajb/wallpaper-switch") -sha256sums=('SKIP') -_gotoml=github.com/BurntSushi/toml -_gogouuid=github.com/nu7hatch/gouuid -_gohtml=golang.org/x/net/html - -pkgver() { - cd ${srcdir}/${pkgname}/ - git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' -} +makedepends=('go' 'glide') +source=("${pkgname}-${pkgver}::https://github.com/mikolajb/${pkgname}/archive/${pkgver}.tar.gz") +sha256sums=('ef78605575b5466d4e0974a44efbb3b0c53542cbaa559cf9d3b01776e083da24') build() { - msg2 'Compiling...' + msg2 'Settgin GOPATH' + cd "${srcdir}/${pkgname}-${pkgver}" + export GOPATH="${srcdir}" + mkdir -p "${GOPATH}/src/github.com/mikolajb" + ln -sf "$(pwd)" "${GOPATH}/src/github.com/mikolajb/${pkgname}" + cd "${GOPATH}/src/github.com/mikolajb/${pkgname}" - GOPATH="$srcdir" go get -fix -v -x ${_gotoml}/ - GOPATH="$srcdir" go get -fix -v -x ${_gogouuid}/ - GOPATH="$srcdir" go get -fix -v -x ${_gohtml}/ + msg2 'Fetching dependencies...' + glide install - cd ${srcdir}/${pkgname}/ - GOPATH="$GOPATH:$srcdir" go build -o wallpaper-switch + msg2 'Compiling...' + go build -o wallpaper-switch } -# check() { -# GOPATH="$GOPATH:$srcdir" go test -v -x ${_gotoml}/... -# GOPATH="$GOPATH:$srcdir" go test -v -x ${_gogouuid}/... -# GOPATH="$GOPATH:$srcdir" go test -v -x ${_gohtml}/... -# } - package() { msg2 'Installing...' - install -Dm755 ${srcdir}/${pkgname}/wallpaper-switch ${pkgdir}/usr/bin/wallpaper-switch - install -Dm644 ${srcdir}/${pkgname}/wallpaper-switch.service ${pkgdir}/usr/lib/systemd/user/wallpaper-switch.service - install -Dm644 ${srcdir}/${pkgname}/wallpaper-switch.timer ${pkgdir}/usr/lib/systemd/user/wallpaper-switch.timer + install -Dm755 ${srcdir}/${pkgname}-${pkgver}/wallpaper-switch ${pkgdir}/usr/bin/wallpaper-switch + install -Dm644 ${srcdir}/${pkgname}-${pkgver}/wallpaper-switch.service ${pkgdir}/usr/lib/systemd/user/wallpaper-switch.service + install -Dm644 ${srcdir}/${pkgname}-${pkgver}/wallpaper-switch.timer ${pkgdir}/usr/lib/systemd/user/wallpaper-switch.timer } |