41 lines
1.4 KiB
Bash
41 lines
1.4 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=sawfish-themes
|
|
pkgver=0.13.0
|
|
_debver=$pkgver
|
|
_debrel=2
|
|
pkgrel=1
|
|
pkgdesc="Themes for the Sawfish window manager"
|
|
arch=('any')
|
|
license=('GPL-1')
|
|
depends=('sawfish')
|
|
makedepends=('quilt')
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://deb.debian.org/debian/pool/main/s/sawfish-themes/sawfish-themes_${pkgver}.orig.tar.gz"
|
|
"https://deb.debian.org/debian/pool/main/s/sawfish-themes/sawfish-themes_${_debver}-${_debrel}.debian.tar.xz")
|
|
sha512sums=('fccb1520b4b456e12fadd10cc3bcd8c4976f96b25628a7773e0aa4a1c03b67553c49822d63eea5212dbea139550c1146e9fd51444a0990ebb49387d3c352c12d'
|
|
'ac615e6805dd9d87c5e7f53694095818436698783a121b7fa4daee5d245412375aba1dda030718dfcbb4647d9a3c285771ec36860687270197081fa00bba4bcb')
|
|
|
|
prepare() {
|
|
cd "$srcdir/$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
|
|
|
|
cp debian/copyright ./copyright
|
|
rm -rf ./debian
|
|
fi
|
|
}
|
|
|
|
package() {
|
|
install -d "$pkgdir/usr/share/sawfish/themes/"
|
|
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
|
cp -R "$srcdir/$pkgname-$pkgver/"* "$pkgdir/usr/share/sawfish/themes/"
|
|
mv "$pkgdir/usr/share/sawfish/themes/copyright" "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|