summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanabishi2022-03-26 02:12:26 +0500
committerHanabishi2022-03-26 02:12:26 +0500
commit110251cc5343127521a0b5e60f927c513ba33c91 (patch)
treeb12de6a16b0cd0e0c58e537ceff1ca0700e33756
parentc292a5572ba629f22fa542022b5a0b062c41e10f (diff)
downloadaur-torrent-file-editor.tar.gz
Cosmetic improvement
-rw-r--r--PKGBUILD15
1 files changed, 7 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 52e8f42fb17..cbe0669abbe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,20 +15,19 @@ source=("${pkgname}-${pkgver}.tar.gz::https://github.com/torrent-file-editor/${p
sha256sums=('24459e74ba29a9f47e464f0d9fd8dd873a39af27ede64d1ac65da6a3c5d1fae5')
build() {
- mkdir -p "${srcdir}/build" && cd "$_"
+ cd "${srcdir}"
- cmake \
+ cmake -B "build" -GNinja "${_snapshot}" \
-DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -GNinja "${srcdir}/${_snapshot}"
+ -DCMAKE_INSTALL_PREFIX=/usr
- ninja
+ ninja -C "build"
}
package() {
- cd "${srcdir}/build"
- DESTDIR="${pkgdir}" ninja install
+ cd "${srcdir}"
+ DESTDIR="${pkgdir}" ninja -C "build" install
- cd "${srcdir}/${_snapshot}"
+ cd "${_snapshot}"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "LICENSE"
}