realh / gnvim

GUI for neovim
GNU General Public License v3.0
5 stars 0 forks source link

Arch linux PKGBUILD file #1

Open urandom opened 7 years ago

urandom commented 7 years ago

Hi,

I've prepared a PKGBUILD file for arch linux, in case you want to add it to the AUR:

pkgname=gnvim-git
pkgver=9b88b27
pkgrel=1
pkgdesc='A GTK3 GUI for neovim.'
arch=('i686' 'x86_64')
url='https://github.com/realh/gnvim'
license=('GPL3')
depends=('gtkmm' 'msgpack-c')
makedepends=('git' 'autoconf' 'make')
conflicts=('gnvim')
source=(
    "${pkgname}::git+https://github.com/realh/gnvim"
)
sha256sums=(
    'SKIP'
)
provides=("gnvim=${pkgver}")

pkgver() {
    cd "$srcdir/${pkgname}"
    git rev-parse --short HEAD
}

build() {
    cd "$srcdir/${pkgname}"
    autoreconf -i
    ./configure --prefix=/usr
    make
}

package() {
    cd "$srcdir/${pkgname}"
    make DESTDIR="$pkgdir/" install
}
realh commented 7 years ago

Thanks for that, but I've come to the conclusion that it isn't really worth developing this project further. See the updated README.md for details.

realh commented 7 years ago

I'm continuing with development after all, so this could be useful. Do I just need to include the file PKGBUILD in the top-level directory? And how and when should I update pkgrel?

urandom commented 7 years ago

You have to add PKGBUILD to https://aur.archlinux.org/, beside that, you can keep it anywhere you like, it doesn't have to be part of this repo. The pkgrel should be changed whenever you change something in the pkgbuild, without the sources actually changing.