diff options
author | Nick Logozzo | 2022-06-02 20:26:40 -0400 |
---|---|---|
committer | Nick Logozzo | 2022-06-02 20:26:40 -0400 |
commit | 13ae461fcdf1c34e8c0b4f2b7f2bd37bed0dfaa8 (patch) | |
tree | 66810d9c11d554858f9817199dcedd322a8395de | |
parent | aa97b90c589c43d93b5dc7972a3d6a6c92406115 (diff) | |
download | aur-13ae461fcdf1c34e8c0b4f2b7f2bd37bed0dfaa8.tar.gz |
Improve PKGBUILD
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -14,23 +14,20 @@ sha256sums=("SKIP" "SKIP") prepare() { - mkdir -p build - cd $srcdir/NickvisionApplication + cd "$srcdir/NickvisionApplication" git submodule init git config submodule.GCR_CMake.url "${srcdir}/GCR_CMake" git submodule update } build() { - cd build - cmake $srcdir/NickvisionApplication \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release - make + cmake -B build -S NickvisionApplication \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + -DCMAKE_BUILD_TYPE="Release" + cmake --build build } package() { - cd build - make DESTDIR="$pkgdir/" install - sudo gtk-update-icon-cache -f /usr/share/icons/hicolor + DESTDIR="$pkgdir" cmake --install build + ln -s /usr/bin/org.nickvision.tagger "${pkgdir}/usr/bin/${$pkgname}" }
\ No newline at end of file |