summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD33
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7654b0667bb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = libmetalink
+ pkgdesc = A Metalink library written in C language.
+ pkgver = 0.1.3
+ pkgrel = 1
+ url = https://launchpad.net/libmetalink/
+ arch = i686
+ arch = x86_64
+ license = custom:MIT
+ depends = expat
+ options = !libtool
+ source = https://launchpad.net/libmetalink/trunk/libmetalink-0.1.3/+download/libmetalink-0.1.3.tar.bz2
+ md5sums = 292f290d55ab76a68759483c10f0b110
+
+pkgname = libmetalink
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..58bc40c6d65
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+*.pkg.tar.xz
+*.tar.bz2
+*.log
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f45ccb06af1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Darshit Shah <darnir@gmail.com>
+# Contributor: speps <speps at aur dot archlinux dot org>
+
+pkgname=libmetalink
+pkgver=0.1.3
+pkgrel=1
+pkgdesc="A Metalink library written in C language."
+arch=(i686 x86_64)
+url="https://launchpad.net/libmetalink/"
+license=('custom:MIT')
+depends=('expat')
+makepdepends=('libtool')
+options=('!libtool')
+source=("${url}trunk/$pkgname-$pkgver/+download/$pkgname-$pkgver.tar.bz2")
+md5sums=('292f290d55ab76a68759483c10f0b110')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr \
+ --enable-static=no
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+
+ # license
+ install -Dm644 COPYING \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: