2019-09-05 18:16:37 +08:00
|
|
|
# Maintainer: Jguer <joaogg3@gmail.com>
|
|
|
|
pkgname=yay
|
2020-07-20 15:45:49 +08:00
|
|
|
pkgver=10.0.3
|
2020-05-03 14:35:14 +08:00
|
|
|
pkgrel=1
|
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=(
|
2020-05-03 14:35:14 +08:00
|
|
|
'libalpm.so>=12'
|
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-07-20 15:45:49 +08:00
|
|
|
sha256sums=('6a36e2e00c38eb9e3a3781b5ea7ad46ded93624dac15ac3e9cb93c61b4803f12')
|
2019-09-05 18:16:37 +08:00
|
|
|
|
|
|
|
build() {
|
2020-03-01 07:47:39 +08:00
|
|
|
export GOPATH="$srcdir"/gopath
|
2020-06-19 00:38:36 +08:00
|
|
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
|
|
|
export CGO_CFLAGS="${CFLAGS}"
|
|
|
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
|
|
|
export CGO_LDFLAGS="${LDFLAGS}"
|
|
|
|
|
2019-09-05 18:16:37 +08:00
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2020-06-19 00:38:36 +08:00
|
|
|
LDFLAGS="-extldflags \"${LDFLAGS}\"" \
|
2020-06-14 06:51:47 +08:00
|
|
|
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" build
|
2019-09-05 18:16:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2020-06-14 06:51:47 +08:00
|
|
|
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" install
|
2019-09-05 18:16:37 +08:00
|
|
|
}
|