diff options
author | zxp19821005 | 2023-09-13 18:25:44 +0800 |
---|---|---|
committer | zxp19821005 | 2023-09-13 18:25:44 +0800 |
commit | 16b93e645bae975cf31fa3348808ec24f4b68db8 (patch) | |
tree | ce9cf26d549220cba32c44fbc77f444a9db63718 /PKGBUILD | |
parent | 5bec30ec874dd02dc7c869cc9228d3866b17b2ae (diff) | |
download | aur-16b93e645bae975cf31fa3348808ec24f4b68db8.tar.gz |
fix errors
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -1,6 +1,7 @@ # Maintainer: zxp19821005 <zxp19821005 at 163 dot com> # Contributor: Thomas Quillan <tjquillan@gmail.com> pkgname=igdm-bin +_pkgname=IGdm pkgver=3.0.4 pkgrel=4 pkgdesc="Desktop application for Instagram DMs" @@ -12,11 +13,22 @@ conflicts=("${pkgname%-bin}") depends=('at-spi2-core' 'nss' 'gtk3' 'alsa-lib' 'libxrender' 'libxcomposite' 'libcups' 'libxdamage' \ 'nspr' 'libxcursor' 'gdk-pixbuf2' 'libxext' 'libx11' 'libxfixes' 'hicolor-icon-theme' 'glib2' 'cairo' \ 'pango' 'dbus' 'gcc-libs' 'libxtst' 'glibc' 'libxcb' 'mesa' 'expat' 'libxrandr' 'libxi' 'libdrm') -source=("${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/IGdm_${pkgver}_amd64.deb" - "LICENSE::https://raw.githubusercontent.com/igdmapps/igdm/master/LICENSE") +source=("${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_amd64.deb" + "LICENSE::https://raw.githubusercontent.com/igdmapps/igdm/v${pkgver}/LICENSE") sha256sums=('c65181d96bc3886b77e37fe76d4a17626399ed3253a6353b78759fe0a1e40d99' 'cfe59b21a32217b32573315adbcc0f3621aeaa8dec634e54eb30a0cf260867cc') +prepare() { + bsdtar -xf "${srcdir}/data.tar.xz" + sed "s|/opt/${_pkgname}/${pkgname%-bin}|${pkgname%-bin} --no-sandbox|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" +} package() { - bsdtar -xf "${srcdir}/data.tar.xz" -C "${pkgdir}" + install -Dm755 -d "${pkgdir}/"{opt/"${pkgname%-bin}",usr/bin} + cp -r "${srcdir}/opt/${_pkgname}/"* "${pkgdir}/opt/${pkgname%-bin}" + ln -sf "/opt/${pkgname%-bin}/${pkgname%-bin}" "${pkgdir}/usr/bin/${pkgname%-bin}" + install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" + for _icons in 16x16 32x32 48x48 64x64 128x128 256x256 512x512;do + install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \ + -t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps" + done install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" }
\ No newline at end of file |