Date: Tuesday, July 7, 2020 @ 15:51:55 Author: felixonmars Revision: 659019
archrelease: copy trunk to community-staging-x86_64 Added: libcork/repos/community-staging-x86_64/ libcork/repos/community-staging-x86_64/PKGBUILD (from rev 659018, libcork/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: libcork/repos/community-staging-x86_64/PKGBUILD (from rev 659018, libcork/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-07-07 15:51:55 UTC (rev 659019) @@ -0,0 +1,37 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: banbanchs <memory.silentvoy...@gmail.com> + +pkgname=libcork +pkgver=0.15.0 +pkgrel=3 +pkgdesc="A simple, easily embeddable cross-platform C library" +arch=('x86_64') +url="https://github.com/redjack/libcork" +license=('BSD') +depends=('glibc') +makedepends=('cmake' 'check' 'git') +checkdepends=('python') +source=("git+https://github.com/redjack/libcork.git#tag=$pkgver") +sha256sums=('SKIP') + +prepare() { + mkdir build +} + +build() { + cd build + cmake ../libcork -DCMAKE_INSTALL_PREFIX=/usr + make +} + +check() { + cd build + make test +} + +package() { + cd build + make DESTDIR="$pkgdir/" install + + install -Dm644 "$srcdir"/$pkgname/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +}