summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2019-07-31 20:16:45 -0400
committerAndrew Sun2019-07-31 20:16:45 -0400
commit0871394bf298df2b06b479b40951ee81b47973db (patch)
tree806925e4a78393fea88f6997e4531d690530c3f9
parent0979c6ecb0c8c7e21146933dcbabb5403b0a347f (diff)
downloadaur-taglib-sharp.tar.gz
taglib-sharp: update to 2.2.0.0
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD35
-rw-r--r--taglib-sharp.pc8
3 files changed, 34 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c3f516075b1..a7bb1617525 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,16 @@
-# Generated by mksrcinfo v8
-# Wed Mar 27 15:21:39 UTC 2019
pkgbase = taglib-sharp
pkgdesc = Library for reading and writing metadata in media files for Mono
- pkgver = 2.1.0.0
- pkgrel = 3
+ pkgver = 2.2.0.0
+ pkgrel = 1
url = https://github.com/mono/taglib-sharp
arch = any
license = LGPL2.1
+ makedepends = msbuild
depends = mono
- source = https://github.com/mono/taglib-sharp/archive/taglib-sharp-2.1.0.0.tar.gz
- sha256sums = 8221fccfc2e834eebb24404f2c0ca26b2788af646a172266f89627a5d339bdec
+ source = taglib-sharp-2.2.0.0.tar.gz::https://github.com/mono/taglib-sharp/archive/TaglibSharp-2.2.0.0.tar.gz
+ source = taglib-sharp.pc
+ sha256sums = 69e33531e9129046381989afe4e5aa3db98a83ec478884a393efd93f1952a8c1
+ sha256sums = 7b84254952a5a87f746f9927d866951683434c0ec5ed55a4995f69c5c2b5c7b3
pkgname = taglib-sharp
diff --git a/PKGBUILD b/PKGBUILD
index 391dbc4a50d..91fd1e2ca0f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,35 @@
-# Maintainer:
+# Maintainer: Andrew Sun <adsun701@gmail.com>
# Contributor: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Daniel Isenmann <daniel@archlinux.org>
# Contributor: Carlos Ruiz <cailovirtual@gmail.com>
pkgname=taglib-sharp
-pkgver=2.1.0.0
-pkgrel=3
+pkgver=2.2.0.0
+pkgrel=1
pkgdesc="Library for reading and writing metadata in media files for Mono"
arch=('any')
url="https://github.com/mono/taglib-sharp"
license=('LGPL2.1')
depends=('mono')
-source=(https://github.com/mono/taglib-sharp/archive/$pkgname-$pkgver.tar.gz)
-sha256sums=('8221fccfc2e834eebb24404f2c0ca26b2788af646a172266f89627a5d339bdec')
-
-prepare() {
- cd $pkgname-$pkgname-$pkgver
- sed -i 's/gmcs/mcs/' configure.ac
- NOCONFIGURE=1 ./autogen.sh
-}
+makedepends=('msbuild')
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/mono/taglib-sharp/archive/TaglibSharp-${pkgver}.tar.gz"
+ "taglib-sharp.pc")
+sha256sums=('69e33531e9129046381989afe4e5aa3db98a83ec478884a393efd93f1952a8c1'
+ '7b84254952a5a87f746f9927d866951683434c0ec5ed55a4995f69c5c2b5c7b3')
build() {
- cd $pkgname-$pkgname-$pkgver
- ./configure --prefix=/usr --disable-docs
- make
+ cd ${srcdir}/${pkgname}-TaglibSharp-${pkgver}
+ msbuild -restore TaglibSharp.sln /p:Configuration=Release
}
package() {
- cd $pkgname-$pkgname-$pkgver
- make DESTDIR="$pkgdir" install
+ cd ${srcdir}/${pkgname}-TaglibSharp-${pkgver}
+ install -Dm755 src/Debug/bin/Release/net45/TagLibSharp.dll ${pkgdir}/usr/lib/mono/${pkgname}/TagLibSharp.dll
+ gacutil -i ${pkgdir}/usr/lib/mono/${pkgname}/TagLibSharp.dll -root ${pkgdir}/usr/lib
+
+ # install .pc file
+ install -Dm644 "${srcdir}/${pkgname}.pc" "${pkgdir}/usr/lib/pkgconfig/${pkgname}.pc"
+ sed -e "s|@PREFIX@|/usr|g" \
+ -e "s|@VERSION@|${pkgver}|g" \
+ -i "${pkgdir}/usr/lib/pkgconfig/${pkgname}.pc"
}
diff --git a/taglib-sharp.pc b/taglib-sharp.pc
new file mode 100644
index 00000000000..3bb1042b8b7
--- /dev/null
+++ b/taglib-sharp.pc
@@ -0,0 +1,8 @@
+prefix=@PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+
+Name: TagLib Sharp
+Description: A library for reading and writing tags to audio files.
+Version: @VERSION@
+Libs: -r:${libdir}/mono/taglib-sharp/TagLibSharp.dll