aboutsummaryrefslogtreecommitdiffstats
path: root/dist/archlinux/bleeding
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-11-16 20:17:05 +0100
committerMattias Andrée <maandree@operamail.com>2012-11-16 20:17:05 +0100
commitfa7c26a09fb58ff7f0ba7173b65f7c93e90f71ea (patch)
treedb42c73bb4ed05158ebba491ab50f451aa434d23 /dist/archlinux/bleeding
parentmisc + probe all backlights (diff)
downloadadjbacklight-fa7c26a09fb58ff7f0ba7173b65f7c93e90f71ea.tar.gz
adjbacklight-fa7c26a09fb58ff7f0ba7173b65f7c93e90f71ea.tar.bz2
adjbacklight-fa7c26a09fb58ff7f0ba7173b65f7c93e90f71ea.tar.xz
dist
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--dist/archlinux/bleeding/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/dist/archlinux/bleeding/PKGBUILD b/dist/archlinux/bleeding/PKGBUILD
new file mode 100644
index 0000000..be69f0a
--- /dev/null
+++ b/dist/archlinux/bleeding/PKGBUILD
@@ -0,0 +1,50 @@
+# This is an example PKGBUILD file. Use this as a start to creating your own,
+# and remove these comments. For more information, see 'man PKGBUILD'.
+# NOTE: Please fill out the license field for your package! If it is unknown,
+# then please put 'unknown'.
+
+# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
+# for more information on packaging from GIT sources.
+
+# Maintainer: Mattias Andrée <maandree@operamail.com>
+pkgname=adjbacklight-git
+pkgver=20121116
+pkgrel=1
+pkgdesc="Convient method for adjusting the backlight on your portable computer"
+arch=('any')
+url="https://github.com/maandree/adjbacklight"
+license=('GPL3')
+depends=('java-runtime>=6')
+makedepends=('git' 'java-environment>=6' 'bash')
+optdepends=('imagemagick: allows imgsrcrecovery to read frames in GIF files' 'perl: required for cowsay2unisay')
+provides=('adjbacklight')
+conflicts=('adjbacklight')
+
+_gitroot=https://github.com/maandree/adjbacklight.git
+_gitname=adjbacklight
+
+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 -B DESTDIR="$pkgdir/"
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ make DESTDIR="$pkgdir/" install
+}