summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4d11b238398348052fe270604133d536158813f (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
# Maintainer: Michael Gruz <michael.gruz@gmail.com>

pkgname=3dprinter-udev-rules
pkgver=0.3
pkgrel=0
pkgdesc="Rules for udev to give regular users access to operate 3D printers."
url="https://github.com/hroncok/${pkgname}"
arch=('any')
license=('MIT-0')
depends=('systemd')
makedepends=('systemd')
source=("$pkgname-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz"
  "3dprinter-udev.install")
sha512sums=('78c6107c12742aeb25351874e86a4681e608433708646642c0e44257c9426c6fd753da15f07cc9fc2ba69717e26298552fdbf2cd8e93c1a90964529f0bdb45f8'
            'ce2d4a2215cdafc07e3cf88325ae50babfe61e18b327f669577a1c20aa9756152492cfab41ffeb08f371da00b58935f8b74f7fd282f29c6376ac99fe84633f23')
install='3dprinter-udev.install'

package() {
  install -m755 -d "${pkgdir}/usr/lib/udev/rules.d"
  install -m644 "${srcdir}/${pkgname}-${pkgver}/66-3dprinter.rules" "${pkgdir}/usr/lib/udev/rules.d/"
  install -m755 -d "${pkgdir}/usr/share/doc/$pkgname"
  install -m644 "${srcdir}/${pkgname}-${pkgver}/README.md" "${pkgdir}/usr/share/doc/$pkgname/"
  install -m755 -d "${pkgdir}/usr/share/licenses/$pkgname"
  install -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/"
}

# vim:set ts=2 sw=2 et: