diff options
author | GrayJack | 2019-11-07 02:03:54 -0300 |
---|---|---|
committer | GrayJack | 2019-11-07 02:03:54 -0300 |
commit | 9b83bdd5325df062101799109911d292f37e63b9 (patch) | |
tree | 2bff7f98c2a17127d4b53063e74e205e13875c47 | |
parent | 1ee5d289db17e3e5eb9d278a8e9a190238e588d7 (diff) | |
download | aur-9b83bdd5325df062101799109911d292f37e63b9.tar.gz |
Modify installation to fix programs headers not to be found for other
janet required binaries
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -27,13 +27,19 @@ build() { cd "${srcdir}/${_pkgname}" # janet_build=$(printf "JANET_BUILD=\"%s\"" "$(git rev-parse --short HEAD)") make PREFIX="/usr" CC=clang -j7 + make PREFIX="/usr" build/janet.pc } package() { cd "${srcdir}/${_pkgname}" - make PREFIX="${pkgdir}/usr" install - make PREFIX="${pkgdir}/usr" docs - mkdir -p ${pkgdir}/usr/share/janet - cp -a examples ${pkgdir}/usr/share/janet - cp -a build/doc.html ${pkgdir}/usr/share/janet + + install -Dm 755 "build/janet" "${pkgdir}/usr/bin/janet" + install -Dm 755 "auxbin/jpm" "${pkgdir}/usr/bin/jpm" + install -Dm 644 "src/include/janet.h" "${pkgdir}/usr/include/janet/janet.h" + install -Dm 644 "src/conf/janetconf.h" "${pkgdir}/usr/include/janet/janetconf.h" + install -Dm 644 "build/libjanet.so" "${pkgdir}/usr/lib/libjanet.so.${_pkgver}" + install -Dm 644 "build/libjanet.a" "${pkgdir}/usr/lib/libjanet.a" + install -Dm 644 "janet.1" "${pkgdir}/usr/share/man/janet.1" + install -Dm 644 "jpm.1" "${pkgdir}/usr/share/man/jpm.1" + install -Dm 644 "build/janet.pc" "${pkgdir}/usr/lib/pkgconfig/janet.pc" } |