Created
May 22, 2021 19:03
-
-
Save avbop/d673648e891120dbf54111cdd12c6013 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Alexandria <alxpettit@gmail.com> | |
_pkgname=vim-fish | |
pkgname=${_pkgname}-git | |
pkgver=20200322.8b20c17 | |
pkgrel=1 | |
pkgdesc='VIM runtime files for FISH stuff' | |
url='https://github.com/blankname/vim-fish' | |
arch=('any') | |
license=('custom:MIT') | |
makedepends=('git') | |
source=("${_pkgname}::git+https://github.com/blankname/${_pkgname}.git") | |
sha1sums=('SKIP') | |
provides=("${_pkgname}") | |
conflicts=("${_pkgname}") | |
pkgver() { | |
cd "${srcdir}/${_pkgname}" | |
git log -1 --format='%cd.%h' --date=short | tr -d - | |
} | |
package() { | |
cd "${srcdir}/${_pkgname}" | |
rm .git -rf | |
mkdir -p "${pkgdir}/usr/share/vim/vimfiles" | |
cp -av . "${pkgdir}/usr/share/vim/vimfiles" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would change the
pkgver()
function to conform to Arch Linux's packaging guidelines for VCS packages.instead of line 20.