diff options
author | root <root@rshg054.dnsready.net> | 2013-03-01 00:05:33 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-03-01 00:05:33 -0800 |
commit | 5ae40a63ab4c6838234db5a9da1e99d8bc27875d (patch) | |
tree | dea7d338ac603743f5a323dc8f82b76bdbf5ab2e /community/kmscon/PKGBUILD | |
parent | b56d5949c9b0c3b40a942cd83f71e4420473435b (diff) |
Fri Mar 1 00:05:33 PST 2013
Diffstat (limited to 'community/kmscon/PKGBUILD')
-rw-r--r-- | community/kmscon/PKGBUILD | 47 |
1 files changed, 29 insertions, 18 deletions
diff --git a/community/kmscon/PKGBUILD b/community/kmscon/PKGBUILD index 11cb9492d..801f87927 100644 --- a/community/kmscon/PKGBUILD +++ b/community/kmscon/PKGBUILD @@ -1,37 +1,48 @@ +# $Id: PKGBUILD 85313 2013-02-28 21:20:56Z thestinger $ # Maintainer: Daniel Micay <danielmicay@gmail.com> # Contributor: David Herrmann <dh.herrmann@googlemail.com> pkgname=kmscon -pkgver=6 -pkgrel=3 +pkgver=7 +pkgrel=1 pkgdesc='Terminal emulator based on Kernel Mode Setting (KMS)' arch=(i686 x86_64) url='https://github.com/dvdhrm/kmscon' license=('MIT') depends=(systemd libdrm mesa libegl libgbm libgles pango libxkbcommon libpciaccess xkeyboard-config) -makedepends=('libxslt' 'docbook-xsl' 'linux-api-headers') +makedepends=(git libxslt docbook-xsl linux-api-headers) options=(!libtool) -source=(https://github.com/downloads/dvdhrm/$pkgname/$pkgname-$pkgver.tar.bz2) -md5sums=('12f6966cef8e846f31dbcad916a9f347') + +__gitroot=https://github.com/dvdhrm/kmscon.git +__gitname=kmscon build() { - cd "$srcdir/$pkgname-$pkgver" - ./configure \ - --prefix=/usr \ - --enable-kmscon \ - --disable-wlterm \ - --enable-multi-seat \ - --enable-hotplug \ - --enable-pciaccess \ - --with-video=fbdev,dumb,drm \ - --with-fonts=pango,freetype2,8x16 \ - --with-sessions=dummy,terminal + 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" + + git checkout $pkgname-$pkgver + ./autogen.sh --prefix=/usr --disable-wlterm make } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$srcdir/$__gitname-build" make DESTDIR="$pkgdir/" install mkdir -p "$pkgdir/usr/share/licenses/$pkgname" "$pkgdir/usr/lib/systemd/system" cp COPYING "$pkgdir/usr/share/licenses/$pkgname/" - cp docs/kmscon{,@}.service "$pkgdir/usr/lib/systemd/system/" + cp docs/kmscon{,vt@}.service "$pkgdir/usr/lib/systemd/system/" } |