aboutsummaryrefslogtreecommitdiffstats
path: root/unstable/liblockfile/APKBUILD
blob: 8d89af84784a55cc4468e197668985a50441d788 (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=liblockfile
pkgver=1.08
pkgrel=0
pkgdesc="Implements functions designed to lock the standard mailboxes"
url="http://www.debian.org"
license="GPL"
depends=""
makedepends=""
install=
subpackages="$pkgname-doc"
source="ftp://ftp.debian.org/debian/pool/main/libl/$pkgname/"$pkgname"_"$pkgver".orig.tar.gz"

build() {
	cd "$srcdir"/$pkgname-$pkgver

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
	install -m2755 -D "$srcdir"/"$pkgname-$pkgver"/dotlockfile "$pkgdir"/usr/bin/dotlockfile
	install -m644 -D "$srcdir"/"$pkgname-$pkgver"/lockfile.h "$pkgdir"/usr/include/lockfile.h
	install -m644 -D "$srcdir"/"$pkgname-$pkgver"/maillock.h "$pkgdir"/usr/include/maillock.h
	install -m644 -D "$srcdir"/"$pkgname-$pkgver"/liblockfile.a   "$pkgdir"/usr/lib/liblockfile.a
	install -m644 -D "$srcdir"/"$pkgname-$pkgver"/dotlockfile.1  "$pkgdir"-doc/usr/man/man1/dotlockfile.1
	install -m644 -D "$srcdir"/"$pkgname-$pkgver"/lockfile_create.3  "$pkgdir"-doc/usr/man/man3/lockfile_create.3
	install -m644 -D "$srcdir"/"$pkgname-$pkgver"/maillock.3  "$pkgdir"-doc/usr/man/man3/maillock.3
}

md5sums="c24e2dfb4a2aab0263fe5ac1564d305e  liblockfile_1.08.orig.tar.gz"