summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e05e9ee02f4b474a07d15258596aa3eda49982f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Fabio 'Lolix' Loli <lolix@disroot.org> -> https://github.com/FabioLolix
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>

pkgname=twin-git
pkgver=0.8.0.r38.g9e3707a
pkgrel=1
pkgdesc="A text-mode window environment"
arch=(x86_64 i686 arm armv6h armv7h aarch64)
url="http://sourceforge.net/projects/twin/"
license=(GPL2 LGPL2.1)
depends=(gpm libxpm)
makedepends=(git)
provides=(twin)
conflicts=(twin)
options=(!makeflags)
source=("git+https://github.com/cosmos72/twin")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname/-git/}"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/${pkgname/-git/}"
  LDFLAGS="-lX11" ./configure --prefix=/usr --sbindir=/usr/bin \
	--enable-tt=yes \
	--enable-tt-hw-twin=yes \
    --enable-tt-hw-twin-tunnel=yes \
    --enable-tt-hw-twin-detunnel=yes \
	--enable-tt-hw-xml=yes
  make
}

package() {
  cd "$srcdir/${pkgname/-git/}"
  make DESTDIR="${pkgdir}" install
}