Commit 6b7a29da authored by Seblu's avatar Seblu

Easy archlinux test package build

parent e42eba46
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
......@@ -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
=======
......
#/bin/bash
autoreconf --force -v --install
autoreconf --force -v --install "$@"
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
# Maintainer: Sébastien Luttringer
pkgname=archversion
pkgver=@VERSION@
pkgrel=1
pkgdesc='Archlinux Version Controller'
arch=('any')
url='https://github.com/seblu/archversion'
license=('GPL2')
depends=('python' 'pyalpm' 'python-xdg' 'python-systemd')
optdepends=('abs: to sync abs tree')
source=("$pkgname-$pkgver.tar.xz")
md5sums=('SKIP')
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR="$pkgdir"
install -Dm644 misc/archversion.service "$pkgdir/usr/lib/systemd/user/archversion.service"
install -Dm644 misc/archversion.timer "$pkgdir/usr/lib/systemd/user/archversion.timer"
}
# vim:set ts=2 sw=2 et:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment