summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAdrian Perez de Castro2019-01-05 23:57:14 +0200
committerAdrian Perez de Castro2019-01-05 23:57:14 +0200
commit102dd88b42f19053712ef649c6442f88c2744cd0 (patch)
tree969efb7a08999362db7607e771657710438a578a /PKGBUILD
downloadaur-102dd88b42f19053712ef649c6442f88c2744cd0.tar.gz
Initial import of version 0.2.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2cf890c362e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
+pkgdesc='WPE launcher and webapp container'
+pkgname=cog
+pkgver=0.2.0
+pkgrel=1
+url=https://github.com/Igalia/cog
+arch=(i686 x86_64)
+depends=('wpewebkit>=2.22.0' 'wpebackend-fdo>=1.0.0')
+makedepends=(cmake)
+license=(custom:MIT)
+source=("${url}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"
+ "${url}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz.asc")
+validpgpkeys=('5AA3BC334FD7E3369E7C77B291C559DBE4C9123B')
+md5sums=('2fcb68ae8d52bb4212f9e24724b83f33' 'SKIP')
+sha1sums=('0b34082282abff0563922f3b1c3621f0f0706ac1' 'SKIP')
+sha256sums=('206302966c6019260f5a7a20b4c6afbd4ce77530f7b9cd638fafeed07e47cada' 'SKIP')
+
+prepare () {
+ mkdir -p _build
+}
+
+build () {
+ cd _build
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ "../${pkgname}-${pkgver}"
+ cmake --build .
+}
+
+package () {
+ DESTDIR="${pkgdir}" cmake --build _build --target install
+
+ install -Dm644 "${pkgname}-${pkgver}/COPYING" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}