This commit is contained in:
Jguer 2017-12-04 16:17:45 +09:00
parent af3b264306
commit c36666539b
No known key found for this signature in database
GPG Key ID: 09754DBECF21746F
2 changed files with 18 additions and 13 deletions

View File

@ -1,6 +1,6 @@
pkgbase = yay
pkgdesc = Yet another yogurt. Pacman wrapper and AUR helper written in go.
pkgver = 2.201
pkgver = 2.219
pkgrel = 1
url = https://github.com/Jguer/yay
arch = i686
@ -14,8 +14,8 @@ pkgbase = yay
conflicts = yay-bin
options = !strip
options = !emptydirs
source = https://github.com/Jguer/yay/archive/v2.201.tar.gz
sha1sums = 33fe89ad86aa1b024077fc059a6e363bcbc49d88
source = https://github.com/Jguer/yay/archive/v2.219.tar.gz
sha1sums = 674392963a80093d04c7a8ed0aea0adc541dc003
pkgname = yay

View File

@ -1,6 +1,6 @@
# Maintainer: Jguer <joaogg3@gmail.com>
pkgname=yay
pkgver=2.201
pkgver=2.219
pkgrel=1
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
@ -11,28 +11,33 @@ depends=(
'sudo'
)
makedepends=(
'git'
'go'
'git'
'go'
)
conflicts=('yay-bin')
source=("https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
sha1sums=('33fe89ad86aa1b024077fc059a6e363bcbc49d88')
sha1sums=('674392963a80093d04c7a8ed0aea0adc541dc003')
build() {
prepare() {
export GOPATH="${srcdir}/.go"
export GOBIN="$GOPATH/bin"
go get github.com/jguer/go-alpm github.com/mikkeloscar/aur github.com/mikkeloscar/gopkgbuild
ln -sf "$srcdir/$pkgname-$pkgver" "$GOPATH/src/github.com/jguer/yay"
mkdir -p "$GOPATH"
rm -rf "$GOPATH/src"
ln -sf "$srcdir/$pkgname-$pkgver/vendor" "$GOPATH/src"
}
build() {
cd "$srcdir/$pkgname-$pkgver"
go build -v -o ${pkgname} -ldflags "-s -w -X main.version=${pkgver}"
git submodule update --init
go build -v -o ${pkgname} -ldflags "-s -w -X main.version=${pkgver}"
}
package() {
_output="${srcdir}/$pkgname-$pkgver"
_output="${srcdir}/$pkgname-$pkgver"
install -Dm755 "${_output}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
# Install GLP v3
install -Dm644 "${_output}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname/-bin}/LICENSE"
# install -Dm644 "${_output}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname/-bin/}/LICENSE"
# Install manpage
install -Dm644 "${_output}/yay.8" "${pkgdir}/usr/share/man/man8/yay.8"