summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 657d6f1c3f2090f2de6e2100bbfee4793bf8b060 (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
# Maintainer: brent s. <bts (AT) square-r00t [dot] net>
pkgname=libyuv-git
_pkgname=libyuv
pkgver=r1445.0735245
pkgrel=2
pkgdesc="A library for YUV scaling (git)"
arch=('i686' 'x86_64')
url="https://github.com/lemenkov/libyuv"
license=('custom')
#depends=('')
makedepends=('depot-tools-git' 'cmake')
#optdepends=('')
provides=('libyuv')
source=('git+https://github.com/lemenkov/libyuv.git')
md5sums=('SKIP')

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

package() {

  cd "${srcdir}/${_pkgname}/"
  mkdir out
  cd out
  mkdir -p ${pkgdir}/usr/lib
  cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" -DCMAKE_BUILD_TYPE="Release" ..
  cmake --build . --config Release
  cmake --build . --target install --config Release

}