- commit
- da9d653ef434ce304cbe9875c81eee5183a5581d
- parent
- 1b449f3247c34ba8790e126bafc41c8a921a7be8
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-03-28 07:07
add PKGBUILD
Diffstat
M | Makefile | 13 | +++++++++++++ |
A | PKGBUILD | 11 | +++++++++++ |
A | data/git.nginx | 15 | +++++++++++++++ |
R | style.css -> data/style.css | 0 |
4 files changed, 39 insertions, 0 deletions
diff --git a/Makefile b/Makefile
@@ -13,3 +13,16 @@ src/stagit.o: src/stagit.c src/strlcpy.c src/config.h 13 13 14 14 %.c: %.c.in src/ctpl.py 15 15 python3 src/ctpl.py $< > $@ -1 16 -1 17 install: stagit -1 18 install -D -m 755 stagit "${DESTDIR}/usr/bin/stagit" -1 19 install -D -m 644 data/style.css "${DESTDIR}/var/www/git/style.css" -1 20 install -D -m 644 data/git.nginx "${DESTDIR}/etc/nginx/sites-available/git" -1 21 install -D -m 644 README.md "${DESTDIR}/usr/share/doc/stagit/README.md" -1 22 -1 23 install -D -m 755 gitolite/shell.py "${DESTDIR}/usr/lib/stagit/shell" -1 24 install -D -m 755 gitolite/update.py "${DESTDIR}/usr/lib/stagit/hooks/update" -1 25 install -D -m 755 gitolite/post-update.py "${DESTDIR}/usr/lib/stagit/hooks/post-update" -1 26 install -D -m 644 gitolite/stagit.py "${DESTDIR}/usr/lib/python3/dist-packages/stagit.py" -1 27 -1 28 .PHONY: install
diff --git a/PKGBUILD b/PKGBUILD
@@ -0,0 +1,11 @@ -1 1 pkgname='stagit' -1 2 pkgdesc='static git page generator' -1 3 arch=('amd64') -1 4 depends=('libc6' 'libgit2-27' 'libcmark0' 'python3' 'git') -1 5 optdepends=('git-daemon-sysvinit') -1 6 license='MIT' -1 7 -1 8 package() { -1 9 make -1 10 make DESTDIR="$pkgdir" install -1 11 }
diff --git a/data/git.nginx b/data/git.nginx
@@ -0,0 +1,15 @@ -1 1 server { -1 2 server_name _; -1 3 -1 4 listen [::]:80; -1 5 listen 80; -1 6 -1 7 root /var/www/git; -1 8 -1 9 location ~ /blob/ { -1 10 default_type text/plain; -1 11 types { -1 12 html text/plain; -1 13 } -1 14 } -1 15 }