2019-09-05 18:16:37 +08:00
|
|
|
# Maintainer: Jguer <joaogg3@gmail.com>
|
|
|
|
pkgname=yay
|
2020-03-01 07:47:39 +08:00
|
|
|
pkgver=9.4.6
|
|
|
|
pkgrel=2
|
2019-09-05 18:16:37 +08:00
|
|
|
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
|
2020-03-01 07:47:39 +08:00
|
|
|
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
|
2019-09-05 18:16:37 +08:00
|
|
|
url="https://github.com/Jguer/yay"
|
|
|
|
license=('GPL')
|
|
|
|
depends=(
|
2019-10-23 20:18:00 +08:00
|
|
|
'pacman>=5.2'
|
2019-09-05 18:16:37 +08:00
|
|
|
'sudo'
|
|
|
|
'git'
|
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
'go'
|
|
|
|
)
|
|
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
|
2020-03-01 07:47:39 +08:00
|
|
|
sha1sums=('a3b2dd86fda1cc5998899cd69df2102e57ab8fbc')
|
2019-09-05 18:16:37 +08:00
|
|
|
|
|
|
|
build() {
|
2020-03-01 07:47:39 +08:00
|
|
|
export GOPATH="$srcdir"/gopath
|
2019-09-05 18:16:37 +08:00
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2020-03-01 07:47:39 +08:00
|
|
|
EXTRA_GOFLAGS="-modcacherw -gcflags all=-trimpath=${PWD} -asmflags all=-trimpath=${PWD}" \
|
2019-10-05 14:45:24 +08:00
|
|
|
LDFLAGS="-linkmode external -extldflags \"${LDFLAGS}\"" \
|
|
|
|
make VERSION=$pkgver DESTDIR="$pkgdir" build
|
2019-09-05 18:16:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX=/usr install
|
|
|
|
}
|