forked from fmichea/lpbm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
51 lines (45 loc) · 1.04 KB
/
PKGBUILD
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
# Maintainer: Franck Michea <[email protected]>
pkgname=lpbm-git
pkgver=20121202
pkgrel=2
pkgdesc="Lightweight personal blog maker"
arch=("any")
url="http://bitbucket.org/kushou/lpbm"
license=("BSD")
groups=()
depends=("python" "python-markdown" "python-jinja" "python-pygments" "python-pyrss2gen")
makedepends=("git" "python-distribute")
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=()
noextract=()
md5sums=()
_gitroot="https://bitbucket.org/kushou/lpbm.git"
_gitname="lpbm"
_gitbranch="v2"
build() {
if [ -d "$_gitname" ]; then
cd "$_gitname"
git checkout "$_gitbranch"
git pull --rebase
else
git clone "$_gitroot" "$_gitname"
cd "$_gitname"
git checkout "$_gitbranch"
fi
python setup.py build
}
package() {
cd "$_gitname"
# Python package
python setup.py install --root=$pkgdir/ --optimize=1
# License
mkdir -p $pkgdir/usr/share/licenses/$pkgname/
install LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}