aboutsummaryrefslogtreecommitdiffstats
path: root/main/libatasmart/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/libatasmart/APKBUILD')
-rw-r--r--main/libatasmart/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/main/libatasmart/APKBUILD b/main/libatasmart/APKBUILD
new file mode 100644
index 0000000000..cfd76d9087
--- /dev/null
+++ b/main/libatasmart/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Carlo Landmeter
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libatasmart
+pkgver=0.17
+pkgrel=2
+pkgdesc="ATA S.M.A.R.T. Reading and Parsing Library"
+url="http://0pointer.de/blog/projects/being-smart.html"
+arch="all"
+license="GPL"
+depends=
+depends_dev="udev-dev"
+makedepends="udev-dev"
+install=
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://0pointer.de/public/$pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --disable-static \
+ --localstatedir=/var
+
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm "$pkgdir"/usr/lib/*.la || return 1
+}
+
+md5sums="dc36cadbbb7fa38f8af175713eda1a21 libatasmart-0.17.tar.gz"