summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75c6e975da7dddd421bbff93a36e781b8f6dc3a8 (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
# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>

_pkgsrcname=pyvenv
_pkgmaintainer=jorgenschaefer
_pkgdestdirname=pyvenv
_versionprefix=v
pkgver=1.21
pkgrel=1
pkgdesc="Python virtual environment interface for Emacs"
pkgname=emacs-${_pkgdestdirname}
arch=(any)
url="https://github.com/${_pkgmaintainer}/${_pkgsrcname}"
license=('GPL3')
depends=('emacs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/${_pkgmaintainer}/${_pkgsrcname}/archive/${_versionprefix}${pkgver}.tar.gz")
sha256sums=('03de0692cbc4402972183e0dafc7c0596effb30b11f85f30a5e251d2df5e42c1')
install=${pkgname}.install

build() {
  cd "${srcdir}/${_pkgsrcname}-${pkgver}"
  emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
}

package() {
  cd "${srcdir}/${_pkgsrcname}-${pkgver}"
  mkdir -p "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
  install -m644 *.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
}