summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 025b2d4005fb11afddc16522fba55ead0de12e8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=blink-bin
pkgver=1.5.1
pkgrel=1
pkgdesc="Instant code search, source files locator. Index management for multiple projects"
arch=('x86_64')
url='https://github.com/ychclone/blink'
license=('GPL3')
provides=("${pkgname%-bin}")
options=('!strip')
makedepends=('gendesk')
source=("${pkgname%-bin}-${pkgver}.AppImage::https://github.com/ychclone/blink/releases/download/${pkgver}/Blink-x86_64.AppImage")
sha256sums=('49754b3f940d6e1439a02357fcf2813aae4603dced9bfadb1ce993c5cc4e8355')

package() {
  chmod 755 ./${pkgname%-bin}-${pkgver}.AppImage
  ./${pkgname%-bin}-${pkgver}.AppImage --appimage-extract
  install -Dm644 squashfs-root/usr/share/icons/hicolor/128x128/${pkgname%-bin}.png "${pkgdir}/usr/share/pixmaps/blink.png"
  gendesk -f -n --pkgname "${pkgname%-bin}" \
          --pkgdesc "$pkgdesc" \
          --name "Blink" \
          --comment "$pkgdesc" \
          --exec "${pkgname%-bin}" \
          --categories 'Utility;Development;Application' \
          --icon "${pkgname%-bin}"
  install -Dm644 "${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
  install -d "${pkgdir}/usr/bin"
  install -d "${pkgdir}/opt"
  cp -avR squashfs-root/ "${pkgdir}/opt/${pkgname%-bin}"
  ln -s /opt/${pkgname%-bin}/AppRun "${pkgdir}/usr/bin/${pkgname%-bin}"
  find "${pkgdir}/opt/${pkgname%-bin}" -type d -exec chmod 755 {} +
}