summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanabishi2022-02-07 03:05:40 +0500
committerHanabishi2022-02-07 03:05:40 +0500
commitc292a5572ba629f22fa542022b5a0b062c41e10f (patch)
tree2713c347f15d8857c5dd8f920afa33ca6950294f
downloadaur-c292a5572ba629f22fa542022b5a0b062c41e10f.tar.gz
Init package
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD34
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c7d0f8a3633
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = torrent-file-editor
+ pkgdesc = Cross-platform application intended to create and edit .torrent and uTorrent .dat files.
+ pkgver = 0.3.17
+ pkgrel = 1
+ url = https://torrent-file-editor.github.io/
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ makedepends = ninja
+ makedepends = qt5-tools
+ depends = qt5-base
+ source = torrent-file-editor-0.3.17.tar.gz::https://github.com/torrent-file-editor/torrent-file-editor/archive/0621e0134014595ae11d31eb901f877857cdd130.tar.gz
+ sha256sums = 24459e74ba29a9f47e464f0d9fd8dd873a39af27ede64d1ac65da6a3c5d1fae5
+
+pkgname = torrent-file-editor
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..dbd390c2322
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+src/
+pkg/
+*.tar.gz
+*.pkg.tar.*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..52e8f42fb17
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+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() {
+ mkdir -p "${srcdir}/build" && cd "$_"
+
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -GNinja "${srcdir}/${_snapshot}"
+
+ ninja
+}
+
+package() {
+ cd "${srcdir}/build"
+ DESTDIR="${pkgdir}" ninja install
+
+ cd "${srcdir}/${_snapshot}"
+ install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "LICENSE"
+}