diff --git a/0001-build-install-public_html-as-web-install-target.patch b/0001-build-install-public_html-as-web-install-target.patch new file mode 100644 index 0000000..fdf784b --- /dev/null +++ b/0001-build-install-public_html-as-web-install-target.patch @@ -0,0 +1,10 @@ +diff --git a/web/CMakeLists.txt b/web/CMakeLists.txt +index f26fc0f38..f8152596b 100644 +--- a/web/CMakeLists.txt ++++ b/web/CMakeLists.txt +@@ -87,3 +87,5 @@ add_custom_target("${TR_NAME}-web" + "${CMAKE_CURRENT_BINARY_DIR}/public_html/transmission-app.js.LICENSE.txt" + SOURCES + ${WEB_SOURCES}) ++ ++tr_install_web(${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME}) diff --git a/PKGBUILD b/PKGBUILD index e86e061..7741203 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -32,13 +32,20 @@ makedepends=( yarn ) source=(https://github.com/transmission/transmission/releases/download/${_pkgver%+*}/transmission-${_pkgver}.tar.xz + 0001-build-install-public_html-as-web-install-target.patch transmission-cli.sysusers transmission-cli.tmpfiles ) sha256sums=('af4f023c0b3f2417f62b314d84ea7f329ca080f86664f24b44246a8c50c6b10a' + 'ca7eb48bf0475438c3bc7be703b6367209d149b341502c059d65061bc45d9433' '641310fb0590d40e00bea1b5b9c843953ab78edf019109f276be9c6a7bdaf5b2' '1266032bb07e47d6bcdc7dabd74df2557cc466c33bf983a5881316a4cc098451') +prepare() { + cd "$_pkgbase-$_pkgver" + patch -Np1 -i "$srcdir/0001-build-install-public_html-as-web-install-target.patch" +} + build() { cd $_pkgbase-$_pkgver