diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-07 23:16:17 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-07 23:16:17 +0100 |
commit | e25f321927bdd91f61dcd083e0a92080fc9ebb11 (patch) | |
tree | 34e107a9aed57f0eb897f62419a2b08fbfc69b04 /main/lockdev | |
parent | 8d34a69db11887570deafcf0afb7f3143acd57d5 (diff) | |
download | aports-e25f321927bdd91f61dcd083e0a92080fc9ebb11.tar.bz2 aports-e25f321927bdd91f61dcd083e0a92080fc9ebb11.tar.xz |
testing/lockdev: move to main
Diffstat (limited to 'main/lockdev')
-rw-r--r-- | main/lockdev/APKBUILD | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/main/lockdev/APKBUILD b/main/lockdev/APKBUILD new file mode 100644 index 000000000..712966669 --- /dev/null +++ b/main/lockdev/APKBUILD @@ -0,0 +1,66 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=lockdev +pkgver=20121202 +pkgrel=0 +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" +license="GPL" +depends="" +depends_dev="" +makedepends="$depends_dev automake autoconf libtool" +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 +} + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./bootstrap || return 1 + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="736706b8efd771ee5dd0dcf0d9d27a15 lockdev-20121202.tar.gz" |