diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-11-16 20:17:05 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-11-16 20:17:05 +0100 |
commit | fa7c26a09fb58ff7f0ba7173b65f7c93e90f71ea (patch) | |
tree | db42c73bb4ed05158ebba491ab50f451aa434d23 | |
parent | misc + probe all backlights (diff) | |
download | adjbacklight-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/PKGBUILD | 50 | ||||
-rw-r--r-- | dist/archlinux/stable/PKGBUILD | 24 |
2 files changed, 74 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 +} diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD new file mode 100644 index 0000000..000d547 --- /dev/null +++ b/dist/archlinux/stable/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Mattias Andrée <maandree@operamail.com> +pkgname=adjbacklight +pkgver=2 +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=('java-environment>=6' 'bash') +provides=('adjbacklight') +conflicts=('adjbacklight') +source=(https://github.com/maandree/adjbacklight/tarball/2) +md5sums=(d34f2d5af1b022b68d3bceaa48791b99) + +build() { + cd maandree-adjbacklight-* + make -B DESTDIR="$pkgdir/" +} + +package() { + cd maandree-adjbacklight-* + make DESTDIR="$pkgdir/" install +} |