summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlarchunix2016-06-17 01:03:50 +0200
committerlarchunix2016-06-17 01:03:50 +0200
commite68b6cee4f99698f6703e2968df9431ddfda695f (patch)
tree1f12163fefafa681f8f444ffa839f595b71a55e5
downloadaur-e68b6cee4f99698f6703e2968df9431ddfda695f.tar.gz
Initial import
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD45
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5c815b19482
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = drpm
+ pkgdesc = A small library for fetching information from deltarpm packages
+ pkgver = 0.3.0
+ pkgrel = 1
+ url = https://fedorahosted.org/drpm/
+ arch = i686
+ arch = x86_64
+ license = LGPL3
+ checkdepends = cmocka
+ makedepends = cmake
+ makedepends = doxygen
+ depends = bzip2
+ depends = openssl
+ depends = rpm-org
+ depends = xz
+ depends = zlib
+ source = https://fedorahosted.org/released/drpm/drpm-0.3.0.tar.bz2
+ md5sums = e1ca38e14f52d0f5229bba45ba8b8904
+
+pkgname = drpm
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a7881d48be0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+pkgname=drpm
+pkgver=0.3.0
+pkgrel=1
+pkgdesc="A small library for fetching information from deltarpm packages"
+arch=('i686' 'x86_64')
+url="https://fedorahosted.org/$pkgname/"
+license=('LGPL3')
+depends=('bzip2' 'openssl' 'rpm-org' 'xz' 'zlib')
+makedepends=('cmake' 'doxygen')
+checkdepends=('cmocka')
+source=("https://fedorahosted.org/released/$pkgname/$pkgname-$pkgver.tar.bz2")
+md5sums=('e1ca38e14f52d0f5229bba45ba8b8904')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ rm -rf build
+ mkdir build
+}
+
+build() {
+ cd "$pkgname-$pkgver"/build
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DINCLUDE_INSTALL_DIR=/usr/include \
+ -DLIB_INSTALL_DIR=/usr/lib \
+ ..
+
+ make
+ make doc
+}
+
+check() {
+ cd "$pkgname-$pkgver"/build
+ make ARGS="-V" test
+}
+
+package() {
+ cd "$pkgname-$pkgver"/build
+ make DESTDIR="$pkgdir/" install
+
+ install -d "$pkgdir"/usr/share/doc/$pkgname
+ cp -a doc/html "$pkgdir"/usr/share/doc/$pkgname/html
+}
+
+# vim: set ft=sh ts=4 sw=4 noet: