aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-11-18 20:18:25 +0100
committerMattias Andrée <maandree@operamail.com>2012-11-18 20:18:25 +0100
commit2fbefcf3dbb33f94855805e8ef78cb2572eed0c1 (patch)
tree0ccdf06367a679dd5b81c595ab7b75214a001b24
parentmakefile (diff)
downloadsysrss-2fbefcf3dbb33f94855805e8ef78cb2572eed0c1.tar.gz
sysrss-2fbefcf3dbb33f94855805e8ef78cb2572eed0c1.tar.bz2
sysrss-2fbefcf3dbb33f94855805e8ef78cb2572eed0c1.tar.xz
dist
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--.gitignore2
-rw-r--r--dist/archlinux/bleeding/PKGBUILD41
-rw-r--r--dist/archlinux/stable/PKGBUILD23
3 files changed, 65 insertions, 1 deletions
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 <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
+}