diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-11-18 20:18:25 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-11-18 20:18:25 +0100 |
commit | 2fbefcf3dbb33f94855805e8ef78cb2572eed0c1 (patch) | |
tree | 0ccdf06367a679dd5b81c595ab7b75214a001b24 | |
parent | makefile (diff) | |
download | sysrss-2fbefcf3dbb33f94855805e8ef78cb2572eed0c1.tar.gz sysrss-2fbefcf3dbb33f94855805e8ef78cb2572eed0c1.tar.bz2 sysrss-2fbefcf3dbb33f94855805e8ef78cb2572eed0c1.tar.xz |
dist
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | dist/archlinux/bleeding/PKGBUILD | 41 | ||||
-rw-r--r-- | dist/archlinux/stable/PKGBUILD | 23 |
3 files changed, 65 insertions, 1 deletions
@@ -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 <maandree@operamail.com> +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 <maandree@operamail.com> +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 +} |