Commit 01ceb063 authored by Seblu's avatar Seblu
Browse files

Gen PKGBUILD with automake helps

parent e9e36312
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
EXTRA_DIST = PKGBUILD
noinst_SCRIPTS=PKGBUILD
EXTRA_DIST = PKGBUILD.in $(noinst_SCRIPTS)
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)/$< > $@

dist_doc_DATA = example*.conf
+4 −10
Original line number Diff line number Diff line
# Maintainer: Sébastien Luttringer

pkgname=archversion
pkgver=$(cd "$startdir/.."; ./bootstrap; ./configure -V|sed -n 's/archversion configure //p')
pkgver=@VERSION@
pkgrel=1
pkgdesc='Archlinux Version Controller'
arch=('any')
url='https://github.com/seblu/archversion'
license=('GPL2')
depends=('python' 'pyalpm' 'python-xdg')

prepare() {
  cd "$startdir/.."
  ./configure
  make dist
  mv -f $pkgname-$pkgver.tar.gz "$srcdir"
  cd "$srcdir"
  tar xf $pkgname-$pkgver.tar.gz
}
optdepends=('abs: to sync abs tree')
source=("$pkgname-$pkgver.tar.xz")
md5sums=('SKIP')

build() {
  cd $pkgname-$pkgver