summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b578039e577d1d38084f7ead8a51503e23eb3e6 (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
# Maintainer: Mazhar Hussain <realmazharhussain@gmail.com>
pkgname=nautilus-code
pkgver=0.5
pkgrel=1
pkgdesc="Adds right-click menu items to open current folder in code editors"
arch=(any)
url="https://github.com/realmazharhussain/nautilus-code"
license=('AGPL3')
depends=('libnautilus-extension')
makedepends=('git' 'meson')
optdepends=("code: for 'Open in VSCode' menu item"
            "gnome-builder: for 'Open in Builder' menu item")
backup=()
source=("${pkgname}-${pkgver}.tar.gz"::"$url/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('b395a29e412ee873a6a3108b4257837efc4cb8f2584a4f808cc9b720543e5065')

prepare() {
  cd "$srcdir/$pkgname-${pkgver}"
}
build() {
   arch-meson --buildtype=release "${srcdir}/${pkgname}-${pkgver}" build
}
check() {
  meson test -C build --print-errorlogs
}
package() {
  meson install -C build --destdir="$pkgdir"
}