You are not logged in.

#1 2018-06-13 17:46:50

stromo
Member
Registered: 2018-05-11
Posts: 12

watchthatpage

I've tried to create a PKGBUILD for watchthatpage:

pkgname=watchthatpage-git
_gitname="watchthatpage"
_gourl="github.com/SR-G/watchthatpage"
pkgver=r11.9a719b0
pkgrel=1
epoch=1
pkgdesc="Monitor remote web pages and trigger mail notifications when some modifications are detected."
arch=('i686' 'x86_64')
url="https://github.com/SR-G/watchthatpage"
license=('GPL2')
makedepends=('git' 'go')
source=('git://github.com/SR-G/watchthatpage.git')
md5sums=('SKIP')

pkgver() {
  cd $_gitname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	GOPATH="$srcdir" go get -fix -v -x ${_gourl}
}

check() {
	GOPATH="$GOPATH${GOPATH+:}$srcdir" go test -v -x ${_gourl}
}

package() {
	mkdir -p "$pkgdir/usr/bin"
	install -p -m755 "$srcdir/bin/"* "$pkgdir/usr/bin"
}

but it fails with

package github.com/SR-G/watchthatpage: no Go files in /data/aur/watchthatpage/src/src/github.com/SR-G/watchthatpage

!

May you please help me further.

Offline

#2 2018-06-13 17:57:33

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: watchthatpage


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2018-06-18 15:01:03

stromo
Member
Registered: 2018-05-11
Posts: 12

Re: watchthatpage

With utilizing PKGBUILD with GOPATH and dep I still get:

init failed: unable to determine the import path for the root project /data/aur/watchthatpage/src/gopath/github.com/SR-G/watchthatpage: /data/aur/watchthatpage/src/gopath/github.com/SR-G/watchthatpage is not within any GOPATH/src

Offline

Board footer

Powered by FluxBB