You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
3.1 KiB
Plaintext
106 lines
3.1 KiB
Plaintext
11 years ago
|
#!/bin/bash
|
||
|
# Build script for Slackware
|
||
11 years ago
|
|
||
|
install -D -m 644 $CWD/zotero.desktop $PKG/usr/share/applications/zotero.desktop
|
||
|
|
||
|
# Copy slack-desc and doinst.sh files
|
||
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
|
||
|
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
|
||
|
|
||
|
# Package the tree
|
||
|
cd $PKG
|
||
|
mkdir -p $OUT
|
||
|
PACKAGING="
|
||
|
chown root:root . -R
|
||
|
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
|
||
|
rm -rf $PKG
|
||
|
"
|
||
|
if type -p fakeroot ; then
|
||
|
echo "$PACKAGING" | fakeroot
|
||
|
else
|
||
|
su -c "$PACKAGING"
|
||
|
fi
|