diff options
author | zxp19821005 | 2024-03-21 11:15:35 +0800 |
---|---|---|
committer | zxp19821005 | 2024-03-21 11:15:35 +0800 |
commit | 9ea26b19f835152e22a6d35f2289f5e52f35ccbb (patch) | |
tree | 76701cb5aa5c178b311133c0026e336de05d7dff /PKGBUILD | |
parent | 482b096fdd95d28a0376eb44d7517ea3d3f40a00 (diff) | |
download | aur-9ea26b19f835152e22a6d35f2289f5e52f35ccbb.tar.gz |
fix errors
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 21 insertions, 12 deletions
@@ -2,7 +2,7 @@ pkgname=anklang-bin pkgver=0.2.0 _electronversion=25 -pkgrel=4 +pkgrel=5 pkgdesc="A digital audio synthesis application for live creation and composition of music and other audio material." arch=('x86_64') url="https://github.com/tim-janik/anklang" @@ -10,26 +10,35 @@ license=("MPL-2.0") provides=("${pkgname%-bin}=${pkgver}") conflicts=("${pkgname%-bin}") depends=( - 'gtk2' - 'gtk3' - 'alsa-lib' - 'hicolor-icon-theme' - 'nss' + "electron${_electronversion}-bin" 'flac' 'pipewire-jack' + 'gtk2' 'opus' ) -source=("${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_amd64.deb") -sha256sums=('749f5a76b3bde9fdf3f6ea87cca936f2ab2572ac00e31e3d3a47e63f66c0e099') +source=( + "${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_amd64.deb" + "${pkgname%-bin}.sh" +) +sha256sums=('749f5a76b3bde9fdf3f6ea87cca936f2ab2572ac00e31e3d3a47e63f66c0e099' + 'dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8') build() { + sed -e "s|@electronversion@|${_electronversion}|" \ + -e "s|@appname@|${pkgname%-bin}|g" \ + -e "s|@runname@|app|g" \ + -e "s|@options@||g" \ + -i "${srcdir}/${pkgname%-bin}.sh" bsdtar -xf "${srcdir}/data."* sed "s|Exec=/usr/local/lib/${pkgname%-bin}-0-2/bin/${pkgname%-bin}|Exec=${pkgname%-bin}|g" \ -i "${srcdir}/usr/local/share/applications/${pkgname%-bin}.desktop" + sed "s|__dirname + '/../../../lib/AnklangSynthEngine'|'./lib/AnklangSynthEngine'|g" \ + -i "${srcdir}/usr/local/lib/${pkgname%-bin}-0-2/electron/resources/app/main.js" } package() { - install -Dm755 -d "${pkgdir}/"{opt/"${pkgname%-bin}",usr/bin} - cp -r "${srcdir}/usr/local/lib/${pkgname%-bin}-0-2/"* "${pkgdir}/opt/${pkgname%-bin}" - ln -sf "/opt/${pkgname%-bin}/bin/${pkgname%-bin}" "${pkgdir}/usr/bin/${pkgname%-bin}" + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" + install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}" + cp -r "${srcdir}/usr/local/lib/${pkgname%-bin}-0-2/electron/resources/app" "${pkgdir}/usr/lib/${pkgname%-bin}" + cp -r "${srcdir}/usr/local/lib/${pkgname%-bin}-0-2/"{lib,ui} "${pkgdir}/usr/lib/${pkgname%-bin}" install -Dm644 "${srcdir}/usr/local/share/doc/${pkgname%-bin}/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "${srcdir}/usr/local/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" install -Dm644 "${srcdir}/usr/local/share/icons/hicolor/scalable/apps/${pkgname%-bin}.svg" -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps" @@ -37,5 +46,5 @@ package() { install -Dm644 "${srcdir}/usr/local/share/mime/packages/${pkgname%-bin}.xml" -t "${pkgdir}/usr/share/mime/packages" install -Dm644 "${srcdir}/usr/local/share/doc/${pkgname%-bin}/"*.* -t "${pkgdir}/usr/share/doc/${pkgname%-bin}" cp -r "${srcdir}/usr/local/share/doc/${pkgname%-bin}/style" "${pkgdir}/usr/share/doc/${pkgname%-bin}" - ln -sf "/usr/lib/libFLAC.so" "${pkgdir}/opt/${pkgname%-bin}/lib/libFLAC.so.8" + ln -sf "/usr/lib/libFLAC.so" "${pkgdir}/usr/lib/${pkgname%-bin}/lib/libFLAC.so.8" }
\ No newline at end of file |