blob: 2292b6cc76484bf532b749d7b9d92d6fee7021f3 (
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
|
# Contributor: Laurent Tréguier <laurent@treguier.org>
pkgname=libui
pkgver=0.4.1.alpha
_pkgver=alpha4.1
pkgrel=1
pkgdesc='A portable GUI library for C'
arch=('i686' 'x86_64')
url='https://github.com/andlabs/libui'
license=('MIT')
depends=('gtk3' 'libx11' 'libxcb' 'libffi')
makedepends=('cmake')
provides=('libui')
conflicts=('libui-git')
source=("https://github.com/andlabs/libui/archive/${_pkgver}.tar.gz")
md5sums=('8c6263ee0a91f76412bffdd104c2be73')
build() {
cd "${srcdir}/${pkgname}-${_pkgver}"
mkdir -p build
cd build
cmake ..
make
}
package() {
cd "${srcdir}/${pkgname}-${_pkgver}"
install -d "${pkgdir}/usr/"{include,lib}
install -Dm644 ui.h "${pkgdir}/usr/include"
install -Dm644 ui_unix.h "${pkgdir}/usr/include"
install -Dm755 build/out/libui.so.0 "${pkgdir}/usr/lib"
install -Dm755 build/out/libui.so "${pkgdir}/usr/lib"
}
|