mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-09 12:57:49 +08:00
unvanquished-data: fix build
This commit is contained in:
parent
e8615da023
commit
0f3a8df68c
@ -9,16 +9,16 @@ arch=('any')
|
|||||||
url='http://www.unvanquished.net'
|
url='http://www.unvanquished.net'
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
makedepends=('aria2')
|
makedepends=('aria2')
|
||||||
source=("https://github.com/Unvanquished/Unvanquished/raw/${_gitver}/download-pk3-torrent.sh")
|
source=("https://github.com/Unvanquished/Unvanquished/raw/${_gitver}/download-dpk-torrent.sh")
|
||||||
sha1sums=('d694e72211c4e7101811c0f9fc61efc8461f1bc6')
|
sha1sums=('7d42f634892422260bd006a3723eab76b4db8ac0')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}"
|
cd "${srcdir}"
|
||||||
|
|
||||||
#aria2/GnuTLS bug workaround
|
#aria2/GnuTLS bug workaround
|
||||||
sed -i 's,https,http,' download-pk3-torrent.sh
|
sed -i 's,https,http,' download-dpk-torrent.sh
|
||||||
|
|
||||||
chmod +x download-pk3-torrent.sh
|
chmod +x download-dpk-torrent.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
@ -33,11 +33,11 @@ package() {
|
|||||||
# attempt to copy existing assets from the system, so they aren't redownloaded
|
# attempt to copy existing assets from the system, so they aren't redownloaded
|
||||||
if [ -d /var/lib/unvanquished/pkg ]; then
|
if [ -d /var/lib/unvanquished/pkg ]; then
|
||||||
echo "Copying existing assets from the system (old location)..."
|
echo "Copying existing assets from the system (old location)..."
|
||||||
cp -r /var/lib/unvanquished/pkg/*.pk3 "${pkgdir}/usr/share/unvanquished/pkg/" || true
|
cp -r /var/lib/unvanquished/pkg/*.dpk "${pkgdir}/usr/share/unvanquished/pkg/" || true
|
||||||
fi
|
fi
|
||||||
if [ -d /usr/share/unvanquished/pkg ]; then
|
if [ -d /usr/share/unvanquished/pkg ]; then
|
||||||
echo "Copying existing assets from the system..."
|
echo "Copying existing assets from the system..."
|
||||||
cp -r /usr/share/unvanquished/pkg/*.pk3 "${pkgdir}/usr/share/unvanquished/pkg/" || true
|
cp -r /usr/share/unvanquished/pkg/*.dpk "${pkgdir}/usr/share/unvanquished/pkg/" || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make the download script aware of copied assets, so it will remove unneeded ones
|
# make the download script aware of copied assets, so it will remove unneeded ones
|
||||||
@ -47,5 +47,5 @@ package() {
|
|||||||
rm -f "${srcdir}/cache/"*".aria2"
|
rm -f "${srcdir}/cache/"*".aria2"
|
||||||
|
|
||||||
# download new or modified assets
|
# download new or modified assets
|
||||||
./download-pk3-torrent.sh "${pkgdir}/usr/share/unvanquished/pkg/" "${srcdir}/cache" "${pkgver}"
|
./download-dpk-torrent.sh "${pkgdir}/usr/share/unvanquished/pkg/" "${srcdir}/cache" "${pkgver}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user