Skip to content
Browse files

Arch PKGBUILD added

  • Loading branch information...
1 parent c92a4ee commit afac60d1d741018e2e5cc1c1bbc0ff6d2764b37e @gentoo-root committed
Showing with 39 additions and 0 deletions.
  1. +39 −0 arch/PKGBUILD
View
39 arch/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Maxim A. Mikityanskiy <maxtram95@gmail.com>
+pkgname=jacknotifier-git
+pkgver=20120309
+pkgrel=1
+pkgdesc="Headphones Jack Notification Daemon"
+arch=('i686' 'x86_64')
+url="https://github.com/gentoo-root/jacknotifier"
+license=('GPL3')
+depends=('dbus' 'libnotify' 'jacklistener')
+makedepends=('git' 'pkgconfig')
+
+_gitroot="git://github.com/gentoo-root/jacknotifier.git"
+_gitname="jacknofifier"
+
+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 make..."
+
+ rm -rf "$srcdir/$_gitname-build"
+ git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ cd "$srcdir/$_gitname-build"
+
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ make DESTDIR="$pkgdir" install
+}

0 comments on commit afac60d

Please sign in to comment.
Something went wrong with that request. Please try again.