blob: 90a3dbc2548ab4df34241fdde89a8d94eac5fcfc (
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
|
# Contributor: TrekDev <trekdev0 at gmail dot com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=emacs-solidity-mode-git
pkgver=0.1.9.r112
pkgrel=1
pkgdesc='Solidity mode package for Emacs'
url='https://github.com/ethereum/emacs-solidity'
arch=('any')
license=('custom:MIT')
source=("${pkgname}::git+https://github.com/ethereum/emacs-solidity")
sha256sums=('SKIP')
depends=('emacs')
pkgver() {
cd ${pkgname}
printf "%s.r%s" "$(awk '/;; Version:/ {print $3}' solidity-mode.el)" "$(git rev-list --count HEAD)"
}
package() {
cd ${pkgname}
install -dm0755 $pkgdir/usr/share/emacs/site-lisp/solidity-mode
install -dm0755 $pkgdir/usr/share/doc/emacs-solidity-mode
install -m0644 *.el -t $pkgdir/usr/share/emacs/site-lisp/solidity-mode
install -m0644 README.org $pkgdir/usr/share/doc/emacs-solidity-mode/README
install -Dm644 LICENCSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
|