initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

48
openttd-opensfx/PKGBUILD Normal file
View File

@@ -0,0 +1,48 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=openttd-opensfx
pkgver=1.0.3
_debver=$pkgver
_debrel=2
pkgrel=3
pkgdesc="A free and libre sound set for OpenTTD"
arch=('any')
url='https://github.com/OpenTTD/OpenSFX'
license=('GPL-2' 'CC-BY-SA-3.0')
makedepends=('catcodec' 'quilt')
groups=('games')
source=("${pkgname}-${pkgver}.tar.xz::https://deb.debian.org/debian/pool/main/o/openttd-opensfx/openttd-opensfx_${pkgver}.orig.tar.xz"
"https://deb.debian.org/debian/pool/main/o/openttd-opensfx/openttd-opensfx_1.0.3-2.debian.tar.xz")
sha512sums=('a077fcb1676ba17aa5e9e2df32c2d69452fe54895e3ac64a80c2a6247aa3ea2ef37443e2391f88117768eeb3f808793c78c11727c69bb3df2fde57f67964dbff'
'2b3bade253e84ab9ff21de6630c7b7e8fa393b6b0012f10a2a7dce467f38ff707610419477ad875519f0589b2808f0385f9ff37e27a391ec349cc3b7551ff563')
prepare() {
mv "opensfx-$pkgver-source" "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
quilt push -av
fi
}
build() {
cd "$pkgname-$pkgver"
make INSTALL_DIR="$pkgdir/usr/share/games/openttd/data"
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" INSTALL_DIR="$pkgdir/usr/share/games/openttd/data" install
# cleaning structure
mv "$pkgdir/usr/share/games/openttd/data/opensfx-$pkgver/"opensfx.{obs,cat} "$pkgdir/usr/share/games/openttd/data"
rm -rf "$pkgdir/usr/share/games/openttd/data/opensfx-$pkgver/"
install -Dm644 docs/license.txt debian/copyright -t "$pkgdir/usr/share/licenses/$pkgname"
}