summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD37
-rw-r--r--log4net.pc8
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6cb0afddf68
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = log4net
+ pkgdesc = A tool to help the programmer output log statements to a variety of output targets
+ pkgver = 2.0.8
+ pkgrel = 2
+ url = https://logging.apache.org/log4net/
+ arch = any
+ license = Apache
+ depends = mono
+ source = https://archive.apache.org/dist/logging/log4net/source/log4net-2.0.8-src.zip
+ source = https://archive.apache.org/dist/logging/log4net/source/log4net-2.0.8-src.zip.asc
+ source = log4net.pc
+ validpgpkeys = CE8075A251547BEE249BC151A2115AE15F6B8B72
+ sha256sums = 5b4ab2c7753f64fd8d2ca82b553e367c3b5accbed5103ce6a455ab156f7fa08e
+ sha256sums = SKIP
+ sha256sums = 6ce4f40252e0716fb098149e99d1763d7290cc55cc2ccd1420456b1a3b33bb2d
+
+pkgname = log4net
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..223c710f11a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Frane Bandov <frane@offbyte.com>
+# Contributor: Thijs Vermeir <thijsvermeir@gmail.com>
+
+pkgname=log4net
+pkgver=2.0.8
+pkgrel=2
+pkgdesc="A tool to help the programmer output log statements to a variety of output targets"
+arch=('any')
+url="https://logging.apache.org/log4net/"
+license=('Apache')
+depends=('mono')
+source=(https://archive.apache.org/dist/logging/$pkgname/source/$pkgname-$pkgver-src.zip{,.asc}
+ $pkgname.pc)
+validpgpkeys=('CE8075A251547BEE249BC151A2115AE15F6B8B72') # Stefan Bodewig
+sha256sums=('5b4ab2c7753f64fd8d2ca82b553e367c3b5accbed5103ce6a455ab156f7fa08e'
+ 'SKIP'
+ '6ce4f40252e0716fb098149e99d1763d7290cc55cc2ccd1420456b1a3b33bb2d')
+
+prepare() {
+ cd $pkgname-$pkgver
+ sed -i "s/@VERSION@/$pkgver/" "$srcdir/$pkgname.pc"
+}
+
+build() {
+ cd $pkgname-$pkgver
+ mkdir bin
+ mcs -t:library -out:bin/$pkgname.dll -keyfile:$pkgname.snk -d:NET_2_0 \
+ -r:System,System.Data,System.Xml,System.Web,System.Net,System.Configuration \
+ $(find src -name "*.cs")
+}
+
+package() {
+ cd $pkgname-$pkgver
+ gacutil -i bin/$pkgname.dll -package $pkgname -root "$pkgdir/usr/lib/"
+ install -Dm644 "$srcdir/$pkgname.pc" "$pkgdir/usr/lib/pkgconfig/$pkgname.pc"
+}
diff --git a/log4net.pc b/log4net.pc
new file mode 100644
index 00000000000..aab84b366d2
--- /dev/null
+++ b/log4net.pc
@@ -0,0 +1,8 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+
+Name: Log4net
+Description: Log4net - Logging library for C# and VB.NET
+Version: @VERSION@
+Libs: -r:${libdir}/mono/log4net/log4net.dll