blob: 6b0f56cf89ed2d146eebb776504512a8cb2bf585 (
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
|
pkgname=svgalib-git
_gitname=svgalib
pkgver=1.9.27.r0
pkgrel=1
pkgdesc="A low-level SuperVGA graphics library"
arch=('i686' 'x86_64')
url="http://www.svgalib.org/"
conflicts=(svgalib)
license=('GPL')
depends=('perl')
makedepends=('git')
source=('git+https://github.com/akosela/svgalib.git')
md5sums=('SKIP')
prepare() {
cd "${srcdir}/${_gitname}"
git checkout master
}
pkgver() {
cd "${srcdir}/${_gitname}"
local ver=$(git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g')
[[ -z $ver ]] && ver=$(git describe --long --always)
echo $ver | tee /dev/stderr
}
package() {
install -dm755 "${pkgdir}"/usr/lib
cd ${_gitname}
make prefix="${pkgdir}"/usr \
datadir="${pkgdir}"/etc/vga \
NO_HELPER=y \
install
}
|