From 2fbefcf3dbb33f94855805e8ef78cb2572eed0c1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 18 Nov 2012 20:18:25 +0100 Subject: dist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- .gitignore | 2 +- dist/archlinux/bleeding/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++++++ dist/archlinux/stable/PKGBUILD | 23 ++++++++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 dist/archlinux/bleeding/PKGBUILD create mode 100644 dist/archlinux/stable/PKGBUILD diff --git a/.gitignore b/.gitignore index 3848fef..b4ad4bc 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,7 @@ ## Distribution ################# -/dist/archlinux +/dist/archlinux/*/* !/dist/archlinux/*/PKGBUILD !/dist/archlinux/*/*.install !/dist/archlinux/*/*.patch diff --git a/dist/archlinux/bleeding/PKGBUILD b/dist/archlinux/bleeding/PKGBUILD new file mode 100644 index 0000000..7e09c07 --- /dev/null +++ b/dist/archlinux/bleeding/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Mattias Andrée +pkgname=sysrss-git +pkgver=20121118 +pkgrel=1 +pkgdesc="Let your system generate a maintenance notification RSS" +arch=('any') +url="https://github.com/maandree/sysrss" +license=('GPL3') +depends=('python>=3' 'util-linux') +makedepends=('git') +provides=('sysrss') +conflicts=('sysrss') + +_gitroot=https://github.com/maandree/sysrss.git +_gitname=sysrss + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + make DESTDIR="$pkgdir/" +} + +package() { + cd "$srcdir/$_gitname-build" + make DESTDIR="$pkgdir/" install +} diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD new file mode 100644 index 0000000..7a7fc7d --- /dev/null +++ b/dist/archlinux/stable/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Mattias Andrée +pkgname=sysrss +pkgver=1 +pkgrel=1 +pkgdesc="Let your system generate a maintenance notification RSS" +arch=('any') +url="https://github.com/maandree/sysrss" +license=('GPL3') +depends=('python>=3' 'util-linux') +provides=('sysrss') +conflicts=('sysrss') +source=(https://github.com/maandree/sysrss/tarball/1) +md5sums=(c74a2977f65616ff298b70d49ab57ae0) + +build() { + cd maandree-sysrss-* + make -B DESTDIR="$pkgdir/" +} + +package() { + cd maandree-sysrss-* + make DESTDIR="$pkgdir/" install +} -- cgit v1.2.3-70-g09d2