sx-utils/PKGBUILD

44 lines
995 B
Bash
Raw Permalink Normal View History

2015-06-08 09:31:09 +00:00
# Maintainer: Jack L. Frost <fbt@fleshless.org>
pkgbase='sx-utils'
pkgname=( 'sx-utils' 'sx-utils-xdg-compat' )
pkgver='1.6.5'
pkgrel='2'
2015-06-08 09:31:09 +00:00
pkgdesc='An incomplete set of tools to replace xdg-utils'
url='https://code.fleshless.org/fbt/sx-open'
2015-06-08 09:31:09 +00:00
arch=( 'x86_64' 'i686' )
license=( 'ISC' )
depends=( 'bash' )
replaces=( 'sx-open' )
2015-06-08 09:31:09 +00:00
source=( "https://code.fleshless.org/fbt/sx-open/archive/${pkgver}.tar.gz" )
2015-06-08 09:31:09 +00:00
_xdg_utils_shim=(
xdg-{desktop-icon,desktop-menu,email,icon-resource,mime,screensaver,settings}
)
package_sx-utils() {
2015-06-08 09:31:09 +00:00
optdepends=( 'sx-utils-xdg-compat: symbolic links for xdg -> sx' )
cd "sx-open"
2015-06-08 09:31:09 +00:00
install -Dm755 sx-open "$pkgdir/usr/bin/sx-open"
}
package_sx-utils-xdg-compat() {
depends=( 'fake' )
2015-06-08 09:31:09 +00:00
provides=( 'xdg-utils' )
conflicts=( 'xdg-utils' )
cd "sx-open"
2015-06-08 09:31:09 +00:00
mkdir -pm755 "$pkgdir/usr/bin"
ln -s sx-open "$pkgdir/usr/bin/xdg-open"
for x in "${_xdg_utils_shim[@]}"; do
ln -s fake "$pkgdir/usr/bin/$x"
done
2015-06-08 09:31:09 +00:00
}
sha1sums=('490dd04c6f68f318a331f8c7ce021fdf32d49677')