blob: 9936e3b6841d7691e327ea96e50675bd8a1f95da (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
pkgname=("md" "emacs-mdmua")
pkgver=0.81
pkgrel=2
arch=('any')
url="https://github.com/nicferrier/$_pkgname"
license=('GPL3')
options=(!emptydirs)
_gitname=$pkgname
__gitroot="https://github.com/nicferrier/${_gitname}.git"
__gitbranch='1d69744257' # This is the commit that is 0.81
build() {
cd "${srcdir}"
msg "Connecting to GIT server...."
if [ -d ${_gitname} ] ; then
cd ${_gitname}
git checkout master
git pull origin
msg "The local files are updated."
else
git clone ${__gitroot} ${_gitname}
cd ${_gitname}
fi
git checkout ${__gitbranch}
cd ..
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
# fix typo
sed -i 's/pyprofyfs/pyproxyfs/' "${srcdir}/${_gitname}/setup.py"
}
package_md() {
pkgdesc="A maildir client and library."
depends=('python' 'python-pyproxyfs')
cd "${srcdir}/${_gitname}"
python setup.py install --root="$pkgdir/" --optimize=1
}
package_emacs-mdmua() {
pkgdesc="An Emacs mail user agent (MUA) build around md."
pkgver='0.72'
depends=("md=0.81" 'emacs>=24')
cd "${srcdir}/${_gitname}"
cd useragents/emacs
install -d ${pkgdir}/usr/share/emacs/24/site-lisp
install -m 644 *.el ${pkgdir}/usr/share/emacs/24/site-lisp
}
|