diff options
author | Martin Kröning | 2021-06-26 15:49:58 +0200 |
---|---|---|
committer | Martin Kröning | 2021-06-26 15:49:58 +0200 |
commit | 45d0949debffbff83e9d79dfbe0079e1c21b1050 (patch) | |
tree | cc25557da3b4966c92122a4e3d2adf8d7658c574 | |
parent | 447112c9218d2b50a5d15ac258da7ab6a6d46f1b (diff) | |
download | aur-45d0949debffbff83e9d79dfbe0079e1c21b1050.tar.gz |
Update to 2.4.3
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 20 insertions, 26 deletions
@@ -1,15 +1,15 @@ pkgbase = sync-my-l2p - pkgdesc = Sync the L2P and moodle instance of RWTH Aachen University - pkgver = 2.4.2 - pkgrel = 6 - url = https://syncmyl2p.de/ + pkgdesc = Sync the Moodle instance of RWTH Aachen University. + pkgver = 2.4.3 + pkgrel = 1 + url = https://github.com/rwthmoodle/Sync-my-L2P arch = x86_64 license = LGPL3 depends = qt5-base depends = hicolor-icon-theme - source = Sync-my-L2P-2.4.2.tar.gz::https://github.com/rwthmoodle/Sync-my-L2P/archive/v2.4.2.tar.gz - source = https://github.com/rwthmoodle/Sync-my-L2P/releases/download/v2.4.2/SyncMyL2P-2.4.2-linux.AppImage - sha256sums = 7711abf2a184fc908369eb812d9557b80ce13b12e9dd52835cc3c75c83fcec4c - sha256sums = 225b270775bbb5a972429c3800738767f3353525ffcd947ddcd9a66c37577063 + source = Sync-my-L2P-2.4.3.tar.gz::https://github.com/rwthmoodle/Sync-my-L2P/archive/refs/tags/v2.4.3.tar.gz + source = https://github.com/rwthmoodle/Sync-my-L2P/releases/download/v2.4.3/SyncMyL2P-2.4.3-linux.AppImage + sha256sums = b5e652d5f7038b0f160b1d0c2fb09ecda938323a97fc37c8579181b9d0705136 + sha256sums = 8e40a4848617612c118028c2bb8d684f4fde962e72838bcaa292908cbad5103b pkgname = sync-my-l2p @@ -2,36 +2,30 @@ # Contributor: Jan-Erik Rediger <badboy at archlinux dot us> _realname=Sync-my-L2P pkgname=sync-my-l2p -pkgver=2.4.2 -pkgrel=6 -pkgdesc='Sync the L2P and moodle instance of RWTH Aachen University' +pkgver=2.4.3 +pkgrel=1 +pkgdesc="Sync the Moodle instance of RWTH Aachen University." arch=('x86_64') -url='https://syncmyl2p.de/' +url="https://github.com/rwthmoodle/Sync-my-L2P" license=('LGPL3') depends=('qt5-base' 'hicolor-icon-theme') -source=("$_realname-$pkgver.tar.gz::https://github.com/rwthmoodle/$_realname/archive/v$pkgver.tar.gz" +source=("$_realname-$pkgver.tar.gz::https://github.com/rwthmoodle/$_realname/archive/refs/tags/v$pkgver.tar.gz" "https://github.com/rwthmoodle/$_realname/releases/download/v$pkgver/SyncMyL2P-$pkgver-linux.AppImage") -sha256sums=('7711abf2a184fc908369eb812d9557b80ce13b12e9dd52835cc3c75c83fcec4c' - '225b270775bbb5a972429c3800738767f3353525ffcd947ddcd9a66c37577063') +sha256sums=('b5e652d5f7038b0f160b1d0c2fb09ecda938323a97fc37c8579181b9d0705136' + '8e40a4848617612c118028c2bb8d684f4fde962e72838bcaa292908cbad5103b') prepare() { # Setup client_id chmod +x SyncMyL2P-$pkgver-linux.AppImage ./SyncMyL2P-$pkgver-linux.AppImage --appimage-extract usr/bin/$_realname client_id=$(strings squashfs-root/usr/bin/$_realname | grep .apps.rwth-aachen.de) - cd "$_realname-$pkgver" - sed --in-place "s/\(#define CLIENTID\) .*/\1 \"$client_id\"/g; /#error ERROR: NO CLIENTID IN CLIENTID.H DEFINED/d" include/clientId.h - - # Fill in version number - sed "s/PRODUCT_VERSION/$pkgver/g" gui/info.ui.template > gui/info.ui - - mkdir -p build + sed --in-place "s/\(#define CLIENTID\) .*/\1 \"$client_id\"/g; /#error ERROR: NO CLIENTID IN CLIENTID.H DEFINED/d" $_realname-$pkgver/include/clientId.h } build() { - cd "$_realname-$pkgver/build" + cd $_realname-$pkgver - qmake-qt5 ../$_realname.pro \ + qmake-qt5 $_realname.pro \ PREFIX=/usr \ QMAKE_CFLAGS="${CFLAGS}" \ QMAKE_CXXFLAGS="${CXXFLAGS}" \ @@ -41,10 +35,10 @@ build() { } package() { - cd "$_realname-$pkgver" + cd $_realname-$pkgver # Binary - install -D -m0755 build/bin/$_realname "$pkgdir"/usr/bin/$_realname + install -D -m0755 bin/$_realname "$pkgdir"/usr/bin/$_realname # Desktop entry install -D -m0644 linux/$_realname.desktop "$pkgdir"/usr/share/applications/$_realname.desktop |