2019-09-05 18:16:37 +08:00
|
|
|
# Maintainer: Jguer <joaogg3@gmail.com>
|
|
|
|
pkgname=yay
|
2019-10-23 20:18:00 +08:00
|
|
|
pkgver=9.4.2
|
2019-09-05 18:16:37 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
|
|
|
|
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
|
|
|
|
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")
|
2019-10-23 20:18:00 +08:00
|
|
|
sha1sums=('acf4be46fc2560d9fe714e2bc9f1949747c7f10b')
|
2019-09-05 18:16:37 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2019-10-05 14:45:24 +08:00
|
|
|
EXTRA_GOFLAGS="-gcflags all=-trimpath=${PWD} -asmflags all=-trimpath=${PWD}" \
|
|
|
|
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
|
|
|
|
}
|