From fa7c26a09fb58ff7f0ba7173b65f7c93e90f71ea Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 16 Nov 2012 20:17:05 +0100 Subject: dist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- dist/archlinux/bleeding/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 dist/archlinux/bleeding/PKGBUILD (limited to 'dist/archlinux/bleeding') 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 +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 +} -- cgit v1.2.3-70-g09d2