summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4716b1879fb5eb25c1dcb841b13a78137e416f6a (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
# Maintainer: jmcb <joelsgp@protonmail.com>
pkgname=arduino-theme-dracula-git
_name=dracula
pkgver=r13.7a59785
pkgrel=1
pkgdesc="🧛🏻‍♂️ Dark theme for Arduino IDE "
arch=('any')
url="https://github.com/dracula/arduino-ide"
license=('MIT')
depends=('arduino')
makedepends=('git')
checkdepends=()
optdepends=()
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/dracula/arduino-ide.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

package() {
  cd "${pkgname%-git}"
  _dest="${pkgdir}/usr/share/arduino/lib/theme"
  install -d "${_dest}"
  cd theme/
  bsdtar -a -cf "${_dest}/${_name}.zip" *
}