blob: cbe0669abbe3bb207e32c9bcc81625d4bf68ef9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
pkgname=torrent-file-editor
pkgver=0.3.17
pkgrel=1
pkgdesc='Cross-platform application intended to create and edit .torrent and uTorrent .dat files.'
arch=('x86_64')
url="https://${pkgname}.github.io/"
license=('GPL3')
depends=('qt5-base')
makedepends=('cmake' 'ninja' 'qt5-tools')
_commit='0621e0134014595ae11d31eb901f877857cdd130'
_snapshot="${pkgname}-${_commit}"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/torrent-file-editor/${pkgname}/archive/${_commit}.tar.gz")
sha256sums=('24459e74ba29a9f47e464f0d9fd8dd873a39af27ede64d1ac65da6a3c5d1fae5')
build() {
cd "${srcdir}"
cmake -B "build" -GNinja "${_snapshot}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
ninja -C "build"
}
package() {
cd "${srcdir}"
DESTDIR="${pkgdir}" ninja -C "build" install
cd "${_snapshot}"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "LICENSE"
}
|