Commit 6b7a29da authored by Seblu's avatar Seblu
Browse files

Easy archlinux test package build

parent e42eba46
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
SUBDIRS = src/bin src/lib/archversion misc

.PHONY: pkg test

EXTRA_DIST = COPYRIGHT LICENSE

dist_doc_DATA = README.rst

pkg: export PKGDEST = $(CURDIR)
pkg:
	cd misc && makepkg

test: export PYTHONPATH = $(CURDIR)/lib
test:
	-$(CURDIR)/src/bin/archversion
+5 −0
Original line number Diff line number Diff line
@@ -101,6 +101,11 @@ SOURCES
=======
*archversion* sources are available on github [#]_.

Once you get the git tree, you can build a test package:

|  ./bootstrap
|  ./configure
|  make pkg

LICENSE
=======
+1 −1
Original line number Diff line number Diff line
#/bin/bash

autoreconf --force -v --install
autoreconf --force -v --install "$@"
+1 −14
Original line number Diff line number Diff line
noinst_SCRIPTS=PKGBUILD PKGBUILD-git
EXTRA_DIST = PKGBUILD.in $(noinst_SCRIPTS) archversion.service archversion.timer
CLEANFILES = $(noinst_SCRIPTS)

do_substitution = sed -e 's,[@]pythondir[@],$(pythondir),g' \
	-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
	-e 's,[@]VERSION[@],$(VERSION),g'


PKGBUILD: PKGBUILD.in
	$(do_substitution) < $(srcdir)/$< > $@
EXTRA_DIST = archversion.service archversion.timer PKGBUILD

dist_doc_DATA = *.conf.example

pkg:
	makepkg -p PKGBUILD-git
+0 −0

File moved.

Loading