summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
-rw-r--r--umview-mod-umlwip-svn.install13
3 files changed, 22 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 423ac59313d..e47016bf510 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -18,8 +18,10 @@ pkgbase = umview-mod-umlwip-svn
replaces = umview-mod-umlwip-svn
source = svn+http://svn.code.sf.net/p/view-os/code/trunk/xmview-os
source = umview-mod-umlwip-svn.diff
+ source = umview-mod-umlwip-svn.install
md5sums = SKIP
md5sums = 15fd402dc118bf82c65e4c31d808f530
+ md5sums = 981ba81585fa1fbadb632c3a05e803a9
pkgname = umview-mod-umlwip-svn
diff --git a/PKGBUILD b/PKGBUILD
index 713f889055c..167de93eda1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,9 +14,11 @@ provides=("$pkgname=$pkgver")
conflicts=("$pkgname")
replaces=("$pkgname")
source=("svn+http://svn.code.sf.net/p/view-os/code/trunk/xmview-os"
- "${pkgname}.diff")
+ "${pkgname}.diff"
+ "${pkgname}.install")
md5sums=("SKIP"
- "15fd402dc118bf82c65e4c31d808f530")
+ "15fd402dc118bf82c65e4c31d808f530"
+ "981ba81585fa1fbadb632c3a05e803a9")
pkgver() {
cd "$srcdir/xmview-os"
@@ -33,16 +35,16 @@ build(){
cd "$srcdir/xmview-os"
autoreconf -i &> /dev/null
if [ "$CARCH" == "x86_64" ]; then
- ./configure --prefix="${pkgdir}/usr" --disable-static
+ ./configure --prefix="/usr" --disable-static
else
- ./configure --prefix="${pkgdir}/usr" --libdir="${pkgdir}/usr/lib32" --disable-static
+ ./configure --prefix="/usr" --libdir="/usr/lib32" --disable-static
fi
make
}
package() {
cd "$srcdir/xmview-os"
- make install
+ make DESTDIR="$pkgdir" install
if [ "$CARCH" == "x86_64" ]; then
rm -rf ${pkgdir}/usr/lib/libumlib*
else
diff --git a/umview-mod-umlwip-svn.install b/umview-mod-umlwip-svn.install
new file mode 100644
index 00000000000..85ec5f8b274
--- /dev/null
+++ b/umview-mod-umlwip-svn.install
@@ -0,0 +1,13 @@
+post_install() {
+ set -e
+ if [ "$CARCH" == "x86_64" ]; then
+ libtool --finish /usr/lib/umview/modules
+ else
+ libtool --finish /usr/lib32/umview/modules
+ fi
+}
+
+post_remove() {
+ set -e
+ ldconfig
+}