summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWorMzy Tykashi2019-02-01 23:57:39 +0000
committerWorMzy Tykashi2019-02-01 23:57:39 +0000
commitcda44ccfe6128f7c5da20b1472db6ecf0d5ea559 (patch)
treeae415e273cd350474f72c0400bc94a2585ed2bda
parent25f41d8187f10776afecdd7eba6b36a6b84caf57 (diff)
downloadaur-cda44ccfe6128f7c5da20b1472db6ecf0d5ea559.tar.gz
Fix cmake build
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD16
2 files changed, 11 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d74da69ceba..9f1d101f9e0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = freshplayerplugin-git
pkgdesc = PPAPI-host NPAPI-plugin adapter.
- pkgver = 0.3.6.r2.gf550545
+ pkgver = 0.3.9.r6.g58596f4
pkgrel = 1
url = https://github.com/i-rinat/freshplayerplugin
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 9d48c3a6b42..2d733f4f50b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
# Contributor: zman0900 <zman0900@gmail.com>
pkgname=freshplayerplugin-git
-pkgver=0.3.6.r2.gf550545
+pkgver=0.3.9.r6.g58596f4
pkgrel=1
pkgdesc='PPAPI-host NPAPI-plugin adapter.'
arch=('i686' 'x86_64')
@@ -24,16 +24,20 @@ pkgver() {
git describe --tags | sed -e 's:v::' -e 's:-:.r:' -e 's:-:.:g'
}
+prepare() {
+ mkdir -p ${pkgname}/build
+}
+
build() {
- cd "$pkgname"
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
+ cd ${pkgname}/build
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
- cd "$pkgname"
+ cd ${pkgname}/build
make DESTDIR="${pkgdir}" install
- install -Dm644 data/freshwrapper.conf.example "${pkgdir}/usr/share/${pkgname}/freshwrapper.conf.example"
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 ../data/freshwrapper.conf.example "${pkgdir}/usr/share/${pkgname}/freshwrapper.conf.example"
+ install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}