-
-
Save jiripospisil/1af4c9eeebe4147e2d27411fcbff2ed4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index b051503..2c64ea3 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -6,7 +6,7 @@ pkgdesc='PDFium binaries built with scripts from pdfium-binaries' | |
arch=('x86_64') | |
url='https://github.com/bblanchon/pdfium-binaries' | |
license=('Apache') | |
-makedepends=('git' 'ninja' 'cmake' 'pkgconf') | |
+makedepends=('git' 'ninja' 'cmake' 'pkgconf' 'python' 'procps-ng') | |
provides=('libpdfium') | |
conflicts=('libpdfium-nojs' 'pdfium-binaries-v8') | |
@@ -20,17 +20,18 @@ sha512sums=( | |
"195ba1bc0faf933343b753bc8cb3b54b73f02b8400202d461807a8aecc1b06cfe2bff200c614b7bd851650a2eb83b1bdcb54fc6cf49c250b605fb61cbe3c5008" | |
) | |
-build() { | |
- _src_dir="${srcdir}"/pdfium-binaries-chromium-${pkgver} | |
- cd ${_src_dir} | |
- | |
+prepare() { | |
+ cd "${srcdir}"/pdfium-binaries-chromium-${pkgver} | |
patch --forward --strip=1 --input="${srcdir}/001-apt-get.patch" | |
+} | |
+build() { | |
+ cd "${srcdir}"/pdfium-binaries-chromium-${pkgver} | |
./build.sh -b chromium/${pkgver} linux x64 | |
} | |
package() { | |
- _src_dir="${srcdir}"/pdfium-binaries-chromium-${pkgver} | |
+ local _src_dir="${srcdir}"/pdfium-binaries-chromium-${pkgver} | |
install -Dm644 ${_src_dir}/staging/LICENSE "${pkgdir}"/usr/share/licenses/pdfium/LICENSE | |
install -Dm644 ${_src_dir}/staging/PDFiumConfig.cmake "${pkgdir}"/usr/lib/cmake/PDFium/PDFiumConfig.cmake | |
cp -ar ${_src_dir}/staging/include "${pkgdir}"/usr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment