diff options
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -29,18 +29,19 @@ prepare() { } build() { - cd "${_plug}/build" + cd "${_plug}" + + CXXFLAGS+=" $(pkg-config --cflags avisynth)" - CXXFLAGS+=" $(pkg-config --cflags avisynth)" \ - cmake .. \ + cmake -S . -B build \ -DCMAKE_BUILD_TYPE=None \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=/usr - make + cmake --build build } package(){ - make -C "${_plug}/build" DESTDIR="${pkgdir}" install + DESTDIR="${pkgdir}" cmake --install "${_plug}/build" install -Dm644 "${_plug}/README.md" "${pkgdir}/usr/share/doc/avisynth/plugins/${_plug}/README.md" } |