summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cca77cb0bd072b4913b4b7280f6738156a5ff310 (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
pkgname='kex-git'
pkgver='r52.96d1fa2'
pkgrel=1
pkgdesc="KolibriOS emulator for running applications in Linux."
url="https://github.com/tsdima/kex"
source=("git://github.com/tsdima/kex.git")
license=('GPLv3')
arch=('any')
depends=('curl' 'p7zip')
makedepends=('git' 'libx11' 'libxrender')
md5sums=('SKIP')
groups=('kos32-dev')
install=$pkgname.install

pkgver() {
  cd $srcdir/kex
  printf "r% s.% s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build(){
    cd kex
    gcc -o kex main.c k_*.c -lX11 -lXrender -lrt -llzma -ldl -D_GNU_SOURCE
}

package() {
    mkdir -p $pkgdir/usr/bin
    install $srcdir/kex/kex $pkgdir/usr/bin
    install $startdir/kex-setup $pkgdir/usr/bin 
}