summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bc064240106
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+pkgname=transmission-remote-gui
+_pkgname=transgui
+pkgver=5.14.0
+pkgrel=1
+pkgdesc='Cross platform remote GUI for the Transmission daemon'
+arch=('i686' 'x86_64')
+url='https://github.com/leonsoft-kras/transmisson-remote-gui'
+license=('GPL2')
+depends=('qt4pas')
+makedepends=('lazarus')
+conflicts=('transmission-remote-gui-bin')
+source=(https://github.com/leonsoft-kras/transmisson-remote-gui/archive/v${pkgver}.zip
+ ${_pkgname}.desktop)
+sha1sums=('d60021e4ab41e639d9d40baa7bd2b07dde8fd2b8'
+ 'd1678311a60ab60235d9029c0d19c777e2fa6ebf')
+
+build() {
+ mkdir -p "${srcdir}/config"
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ lazbuild "${_pkgname}.lpi" --lazarusdir=/usr/lib/lazarus --widgetset=qt \
+ --primary-config-path="${srcdir}/config"
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ install -D -m 755 "units/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
+
+ install -d -m 755 "${pkgdir}/usr/share/${_pkgname}/lang"
+ install -D -m 644 lang/transgui.* "${pkgdir}/usr/share/${_pkgname}/lang"
+ rm "${pkgdir}/usr/share/${_pkgname}/lang/transgui.template"
+
+ install -d -m 755 "${pkgdir}/usr/share/doc/${pkgname}"
+ install -D -m 644 README.md history.txt LICENSE "${pkgdir}/usr/share/doc/${pkgname}"
+
+ install -D -m 644 "${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
+ install -D -m 644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+}