blob: 923452fa6c26787f985ef0e3bb6caf387661c685 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: LinRs <LinRs at users.noreply.github.com>
pkgname=emacs-helm-git
_pkgname=helm
pkgver=v3.2.r18.g1424ee4c
pkgrel=1
pkgdesc="Emacs incremental completion and selection narrowing framework"
url="https://github.com/emacs-helm/helm"
arch=('any')
license=('GPL3')
depends=('emacs' 'emacs-async')
makedepends=('git')
provides=("emacs-helm=${pkgver}")
conflicts=('emacs-helm')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
prepare() {
cd "${srcdir}/${pkgname}"
sed -i 's/ln -fs/ln -frs/g' Makefile
sed -i "s/BIN\}helm/BIN\}emacs-helm/g" Makefile
}
pkgver() {
cd "${srcdir}/${pkgname}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${srcdir}/${pkgname}"
make PREFIX="/usr"
}
package() {
cd "${srcdir}/${pkgname}"
install -d "${pkgdir}/usr/share/emacs/site-lisp/${_pkgname}"
install -d "${pkgdir}/usr/bin"
make install PREFIX="${pkgdir}/usr/"
}
|