From 95994d42042169830195b3bdbb8980647095d9fe Mon Sep 17 00:00:00 2001 From: Jguer Date: Fri, 2 Dec 2016 18:28:59 +0000 Subject: [PATCH] Removed packaging, not needed --- package/.SRCINFO | 15 --------- package/.gitignore | 4 --- package/PKGBUILD | 84 ---------------------------------------------- 3 files changed, 103 deletions(-) delete mode 100644 package/.SRCINFO delete mode 100644 package/.gitignore delete mode 100644 package/PKGBUILD diff --git a/package/.SRCINFO b/package/.SRCINFO deleted file mode 100644 index 66926fbc7..000000000 --- a/package/.SRCINFO +++ /dev/null @@ -1,15 +0,0 @@ -pkgbase = yay - pkgdesc = Yet another yogurt. Pacman wrapper with AUR support written in go. - pkgver = 1.60 - pkgrel = 1 - arch = i686 - arch = x86_64 - license = GPL - makedepends = go - makedepends = git - depends = sudo - source = yay::git://github.com/Jguer/yay.git#branch=master - md5sums = SKIP - -pkgname = yay - diff --git a/package/.gitignore b/package/.gitignore deleted file mode 100644 index 113e7322b..000000000 --- a/package/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/*.tar.xz -/pkg -/src -/yay diff --git a/package/PKGBUILD b/package/PKGBUILD deleted file mode 100644 index c20a01e5a..000000000 --- a/package/PKGBUILD +++ /dev/null @@ -1,84 +0,0 @@ -# Maintainer: Jguer -pkgname=yay -pkgver=1.60 -pkgrel=1 -pkgdesc="Yet another yogurt. Pacman wrapper with AUR support written in go." -arch=('i686' 'x86_64') -license=('GPL') -depends=( - 'sudo' -) -makedepends=( - 'go' - 'git' -) - -source=( - "yay::git://github.com/jguer/yay.git#branch=${BRANCH:-master}" -) - -md5sums=( - 'SKIP' -) - -backup=( -) - -pkgver() { - if [[ "$PKGVER" ]]; then - echo "$PKGVER" - return - fi - - cd "$srcdir/$pkgname" - local count=$(git rev-list --count HEAD) - echo "1.${count}" -} - -build() { - cd "$srcdir/$pkgname" - - if [ -L "$srcdir/$pkgname" ]; then - rm "$srcdir/$pkgname" -rf - mv "$srcdir/.go/src/$pkgname/" "$srcdir/$pkgname" - fi - - rm -rf "$srcdir/.go/src" - - mkdir -p "$srcdir/.go/src" - - export GOPATH="$srcdir/.go" - - mv "$srcdir/$pkgname" "$srcdir/.go/src/" - - cd "$srcdir/.go/src/$pkgname/cmd/yay" - ln -sf "$srcdir/.go/src/$pkgname/cmd/yay" "$srcdir/$pkgname" - - git submodule update --init - - go get -v \ - -gcflags "-trimpath $GOPATH/src" \ - -ldflags="-X main.version=$pkgver" -} - -package() { - #install executable - find "$srcdir/.go/bin/" -type f -executable | while read filename; do - install -DT "$filename" "$pkgdir/usr/bin/$(basename $filename)" - done - - cd "$srcdir/.go/src/$pkgname" - - # Install GLP v3 - mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" - install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - - - # Install zsh completion - mkdir -p "${pkgdir}/usr/share/zsh/site-functions" - install -m644 zsh-completion "${pkgdir}/usr/share/zsh/site-functions/_yay" - - # Install fish completion - mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d" -install -m644 yay.fish "${pkgdir}/usr/share/fish/vendor_completions.d/yay.fish" -}