summaryrefslogtreecommitdiffstats
path: root/main/lockfile-progs/APKBUILD
blob: ce5d230c5a80066cd74b7530f6f4f999b9416a39 (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
# Contributor: Duane Hughes <duanejevon@gmail.com
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lockfile-progs
pkgver=0.1.15
pkgrel=1
pkgdesc="Programs for locking and unlocking files and mailboxes"
url="http://packages.debian.org/sid/lockfile-progs"
arch="all"
license="GPL"
depends="liblockfile"
makedepends="liblockfile-dev"
install=
subpackages="$pkgname-doc"
source="http://ftp.debian.org/debian/pool/main/l/lockfile-progs/${pkgname}_$pkgver.tar.gz"

_builddir="$srcdir"/sid
prepare() {
	cd "$_builddir"
	# allow us to verride CFLAGS by using 'CFLAGS ?= ...' instead of
	# 'CFLAGS := ...' in the Makefile
	sed -i -e '/^CFLAGS/s/:=/?=/' Makefile || return 1
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"

	install -d "$pkgdir"/usr/bin
	install -d "$pkgdir"/usr/share/man
	install -m 755 "$_builddir"/bin/* "$pkgdir"/usr/bin
	install -m 644 "$_builddir"/man/* "$pkgdir"/usr/share/man
}

md5sums="abfcda83a1868073673f4d78066b8f8a  lockfile-progs_0.1.15.tar.gz"