summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-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"
}