Advertisement
Guest User

Untitled

a guest
Jun 19th, 2020
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. pkgname=yay
  2. pkgver=10.0.1
  3. pkgrel=1
  4. pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
  5. arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
  6. url="https://github.com/Jguer/yay"
  7. license=('GPL')
  8. depends=(
  9.   'libalpm.so>=12'
  10.   'sudo'
  11.   'git'
  12. )
  13. makedepends=(
  14.   'go'
  15. )
  16. source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
  17. sha256sums=('010c1864a9f5ad790c25a98cf57b41a0f6e6cb1be75297056f25d6814b2aeb0d')
  18.  
  19. build() {
  20.   cd "$pkgname-$pkgver"
  21.   LDFLAGS="-linkmode external -extldflags \"${LDFLAGS}\"" \
  22.     make VERSION=$pkgver DESTDIR="$pkgdir" build
  23. }
  24.  
  25. package() {
  26.   cd "$pkgname-$pkgver"
  27.   make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX=/usr install
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement