blob: dc840837d06a2509aa52f175a65d334cd7c8b888 (
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
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
pkgname=lprint-git
pkgver=387_1.3.0_r0_ge0a5b74
pkgrel=1
pkgdesc="A Label Printer Application"
arch=('i686' 'x86_64')
url="https://github.com/michaelrsweet/lprint"
license=('Apache-2.0')
depends=('avahi' 'libcups' 'libpng' 'libusb' 'pappl')
provides=('lprint')
conflicts=('lprint')
makedepends=('git')
source=(git+"${url}.git")
md5sums=('SKIP')
pkgver() {
cd ${pkgname%-git}
_totalcommits="$(git rev-list --count HEAD)"
_curtag="$(git rev-list --tags --max-count=1)"
_tagver="$(git describe --tags ${_curtag} | sed 's:^v::')"
_commits="$(git log v${_tagver}..HEAD --oneline | wc -l)"
_sha="$(git rev-parse --short HEAD)"
printf "%s_%s_r%s_g%s" ${_totalcommits} ${_tagver} ${_commits} ${_sha} | sed 's:-:_:g'
}
build() {
cd ${pkgname%-git}
./configure --prefix=/usr
make
}
package() {
cd ${pkgname%-git}
make DESTDIR="${pkgdir}" install
}
# vim:set ts=2 sw=2 et:
|