Update AUR scripts

This commit is contained in:
ArsenArsen 2017-10-15 17:33:57 +02:00
parent 3e6a3b0407
commit e36f6de9ac
No known key found for this signature in database
GPG Key ID: 683D2F43B0CA4BD2
2 changed files with 13 additions and 10 deletions

View File

@ -31,7 +31,7 @@ build() {
package() {
cd KShare
install -Dm755 src/KShare "$pkgdir/usr/bin/kshare"
install -Dm755 src/kshare "$pkgdir/usr/bin/kshare"
install -Dm644 icons/icon.png "$pkgdir/usr/share/pixmaps/KShare.png"
install -Dm644 KShare.desktop "$pkgdir/usr/share/applications/KShare.desktop"

View File

@ -13,20 +13,23 @@ makedepends=('git')
source=(git+https://github.com/ArsenArsen/KShare.git)
sha1sums=('SKIP')
prepare() {
cd KShare
git submodule update --init --recursive
}
build() {
cd "${srcdir}/KShare"
git submodule update --init --recursive
cd KShare
qmake
make
}
package() {
cd "${srcdir}/KShare"
mkdir -p "$pkgdir/usr/bin"
install src/KShare "$pkgdir/usr/bin/kshare"
mkdir -p "$pkgdir/usr/share/pixmaps"
install "${srcdir}/KShare/icons/icon.png" "$pkgdir/usr/share/pixmaps/KShare.png"
mkdir -p "$pkgdir/usr/share/applications"
# install KShare.desktop "$pkgdir/usr/share/applications"
cd KShare
install -Dm755 src/kshare "$pkgdir/usr/bin/kshare"
install -Dm644 icons/icon.png "$pkgdir/usr/share/pixmaps/KShare.png"
install -Dm644 KShare.desktop "$pkgdir/usr/share/applications/KShare.desktop"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}