Skip to content

Commit 7be0d95

Browse files
tkit1994harry-cpp
authored andcommitted
Add AUR package (fixes #6)
* add pkgbuild stuff * add vscode to optdepends
1 parent ddff975 commit 7be0d95

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

aur/PKGBUILD

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Maintainer: tkit <[email protected]>
2+
pkgname=code-nautilus-git
3+
pkgver=r9.ddff975
4+
pkgrel=2
5+
pkgdesc="VSCode extension for Nautilus"
6+
arch=('i686' 'x86_64')
7+
url="https://github.com/cra0zy/code-nautilus"
8+
license=('custom')
9+
depends=('python-nautilus')
10+
makedepends=('git')
11+
optdepends=('code: The Visual Studio Code (vscode) editor')
12+
install="${pkgname}.install"
13+
source=("${pkgname}::git+${url}.git")
14+
md5sums=('SKIP')
15+
pkgver() {
16+
cd "$pkgname"
17+
(
18+
set -o pipefail
19+
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
20+
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
21+
)
22+
}
23+
24+
package() {
25+
cd "$pkgname"
26+
install -Dm755 code-nautilus.py "$pkgdir/usr/share/nautilus-python/extensions/code-nautilus.py"
27+
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
28+
}

aur/code-nautilus-git.install

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
post_install() {
2+
echo "Remember to restart nautilus by running 'nautilus -q'"
3+
}
4+
5+
post_remove() {
6+
echo "Remember to restart nautilus by running 'nautilus -q'"
7+
}

0 commit comments

Comments
 (0)