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

Gen PKGBUILD with automake helps

parent e9e36312
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
# 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
......
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