summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 895a9708550c2bbbc64963cb40ae97f51885aa1d (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: Tilman Vatteroth <tilman.vatteroth@udo.edu>
pkgname=uniprint-git
pkgver=a0a8eb9
pkgrel=1
pkgdesc="A shell script to print on the printers on IRB printers of the TU Dortmund"
arch=(any)
url="https://github.com/mrdrogdrog/uniprint"
license=('MIT')
depends=(bash openssh)
makedepends=('git')
provides=("uniprint")
conflicts=("uniprint")
source=($pkgname::git+https://github.com/mrdrogdrog/uniprint.git)
sha512sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname}"
	printf "%s" "$(git rev-parse --short HEAD)"
}

package() {
	mkdir -p ${pkgdir}/usr/share/uniprint
	mkdir -p ${pkgdir}/usr/bin
	cp ${srcdir}/${pkgname}/uniprint ${pkgdir}/usr/bin/uniprint
	cp ${srcdir}/${pkgname}/example.conf ${pkgdir}/usr/share/uniprint/example.conf
	chmod +x ${srcdir}/${pkgname}/uniprint
}