summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSandy Carter2018-08-31 20:28:47 -0700
committerSandy Carter2018-08-31 20:28:47 -0700
commit21b445443f6a0026469c2308d1d9477dec484694 (patch)
treed5f652bcbd0a65ddf92b41ccf044574a960fa842 /PKGBUILD
downloadaur-21b445443f6a0026469c2308d1d9477dec484694.tar.gz
Add EASTL
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7be2afba876
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+pkgname=eastl
+pkgname_=EASTL
+pkgver=3.12.01
+pkgrel=1
+pkgdesc="Electronic Arts Standard Template Library. It is an extensive and robust implementation that has an emphasis on high performance."
+arch=(any)
+url="https://github.com/electronicarts/EASTL"
+license=("BSD")
+depends=()
+makedepends=("cmake")
+source=("https://github.com/electronicarts/EASTL/archive/${pkgver}.tar.gz")
+sha384sums=("68defff99706f975158d2ae19c1889831eab2df39619c22193c08a98db2928d48c11a82ff9e3d8cde11de7e6529397e7")
+
+build() {
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -B"${srcdir}/${pkgname_}-${pkgver}" \
+ -H"${srcdir}/${pkgname_}-${pkgver}"
+ cmake --build "${srcdir}/${pkgname_}-${pkgver}"
+}
+
+package() {
+ make DESTDIR="${pkgdir}" -C "${srcdir}/${pkgname_}-${pkgver}" install
+ mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm644 "${srcdir}/${pkgname_}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: