aboutsummaryrefslogtreecommitdiffstats
path: root/main/lockdev
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-01-07 23:32:58 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2013-01-07 23:32:58 +0100
commitd89c8f18c358223f57b7eb64ba47e051f3759841 (patch)
tree481a6705381ba7d3f6fa27d8496019fe25bffe8a /main/lockdev
parente25f321927bdd91f61dcd083e0a92080fc9ebb11 (diff)
downloadaports-d89c8f18c358223f57b7eb64ba47e051f3759841.tar.bz2
aports-d89c8f18c358223f57b7eb64ba47e051f3759841.tar.xz
main/lockdev: fix build and set proper git version
Diffstat (limited to 'main/lockdev')
-rw-r--r--main/lockdev/APKBUILD31
1 files changed, 7 insertions, 24 deletions
diff --git a/main/lockdev/APKBUILD b/main/lockdev/APKBUILD
index 712966669d..7dc2d06126 100644
--- a/main/lockdev/APKBUILD
+++ b/main/lockdev/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=lockdev
-pkgver=20121202
-pkgrel=0
+pkgver=0_git20130107
+pkgrel=1
pkgdesc="Run-time shared library for locking devices, using _both_ FSSTND and SVr4 methods."
url="http://packages.qa.debian.org/l/lockdev.html"
arch="all"
@@ -14,27 +14,8 @@ install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir/$pkgname-$pkgver"
-_giturl="git://anonscm.debian.org/lockdev/lockdev.git"
-_upload="dev.alpinelinux.org:/archive/$pkgname/"
-
-snapshot() {
- local _date=$(date +%Y%m%d)
- local _pkg=$pkgname-$_date.tar.gz
- mkdir -p "$srcdir"
- cd "$srcdir"
- msg "Creating snapshot: $_pkg"
- rm -rf ${_giturl##*/}
- git clone --depth=1 --bare $_giturl || return 1
- git --git-dir ${_giturl##*/} archive -o $_pkg \
- --prefix=$pkgname-$_date/ HEAD \
- || return 1
- msg "Uploading to $_upload"
- rsync -Lave ssh $_pkg $_upload || return 1
- cd "$startdir"
- sed -i -e "s/^pkgver=.*/pkgver=$_date/" \
- APKBUILD || return 1
- abuild checksum
-}
+giturl="git://anonscm.debian.org/lockdev/lockdev.git"
+disturl="dev.alpinelinux.org:/archive/$pkgname/"
prepare() {
local i
@@ -48,6 +29,8 @@ prepare() {
build() {
cd "$_builddir"
+ # bootstap fails with missing m4 dir
+ mkdir m4
./bootstrap || return 1
./configure --prefix=/usr \
--sysconfdir=/etc \
@@ -63,4 +46,4 @@ package() {
rm -f "$pkgdir"/usr/lib/*.la
}
-md5sums="736706b8efd771ee5dd0dcf0d9d27a15 lockdev-20121202.tar.gz"
+md5sums="78ff1b1610e855856badad6a9576ec72 lockdev-0_git20130107.tar.gz"