Skip to content

Commit 6b7a29d

Browse files
committed
Easy archlinux test package build
1 parent e42eba4 commit 6b7a29d

File tree

6 files changed

+17
-43
lines changed

6 files changed

+17
-43
lines changed

Makefile.am

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
SUBDIRS = src/bin src/lib/archversion misc
22

3+
.PHONY: pkg test
4+
35
EXTRA_DIST = COPYRIGHT LICENSE
46

57
dist_doc_DATA = README.rst
8+
9+
pkg: export PKGDEST = $(CURDIR)
10+
pkg:
11+
cd misc && makepkg
12+
13+
test: export PYTHONPATH = $(CURDIR)/lib
14+
test:
15+
-$(CURDIR)/src/bin/archversion

README.rst

+5
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ SOURCES
101101
=======
102102
*archversion* sources are available on github [#]_.
103103

104+
Once you get the git tree, you can build a test package:
105+
106+
| ./bootstrap
107+
| ./configure
108+
| make pkg
104109
105110
LICENSE
106111
=======

bootstrap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#/bin/bash
22

3-
autoreconf --force -v --install
3+
autoreconf --force -v --install "$@"

misc/Makefile.am

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
noinst_SCRIPTS=PKGBUILD PKGBUILD-git
2-
EXTRA_DIST = PKGBUILD.in $(noinst_SCRIPTS) archversion.service archversion.timer
3-
CLEANFILES = $(noinst_SCRIPTS)
4-
5-
do_substitution = sed -e 's,[@]pythondir[@],$(pythondir),g' \
6-
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
7-
-e 's,[@]VERSION[@],$(VERSION),g'
8-
9-
10-
PKGBUILD: PKGBUILD.in
11-
$(do_substitution) < $(srcdir)/$< > $@
1+
EXTRA_DIST = archversion.service archversion.timer PKGBUILD
122

133
dist_doc_DATA = *.conf.example
14-
15-
pkg:
16-
makepkg -p PKGBUILD-git

misc/PKGBUILD-git misc/PKGBUILD

File renamed without changes.

misc/PKGBUILD.in

-28
This file was deleted.

0 commit comments

Comments
 (0)