2015-06-08 09:31:09 +00:00
|
|
|
# Maintainer: Jack L. Frost <fbt@fleshless.org>
|
|
|
|
|
|
|
|
pkgbase='sx-utils'
|
2018-08-01 14:48:04 +00:00
|
|
|
pkgname=( 'sx-utils' 'sx-utils-xdg-compat' )
|
2018-08-02 09:53:49 +00:00
|
|
|
pkgver='1.6.3'
|
|
|
|
pkgrel='1'
|
2015-06-08 09:31:09 +00:00
|
|
|
pkgdesc='An incomplete set of tools to replace xdg-utils'
|
|
|
|
url='https://git.fleshless.org/sx-open'
|
|
|
|
arch=( 'x86_64' 'i686' )
|
|
|
|
license=( 'ISC' )
|
|
|
|
depends=( 'bash' )
|
2018-08-01 14:48:04 +00:00
|
|
|
replaces=( 'sx-open' )
|
2015-06-08 09:31:09 +00:00
|
|
|
|
2017-11-22 23:03:12 +00:00
|
|
|
source=( "https://git.fleshless.org/u/fbt/sx-open/snapshot/sx-open-${pkgver}.tar.gz" )
|
2015-06-08 09:31:09 +00:00
|
|
|
|
2018-08-01 16:32:01 +00:00
|
|
|
_xdg_utils_shim=(
|
|
|
|
xdg-{desktop-icon,desktop-menu,email,icon-resource,mime,screensaver,settings}
|
|
|
|
)
|
|
|
|
|
2018-08-01 14:48:04 +00:00
|
|
|
package_sx-utils() {
|
2015-06-08 09:31:09 +00:00
|
|
|
optdepends=( 'sx-utils-xdg-compat: symbolic links for xdg -> sx' )
|
|
|
|
|
2018-08-01 14:49:03 +00:00
|
|
|
cd "sx-open-${pkgver}"
|
2015-06-08 09:31:09 +00:00
|
|
|
|
|
|
|
install -Dm755 sx-open "$pkgdir/usr/bin/sx-open"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_sx-utils-xdg-compat() {
|
2018-08-01 16:45:26 +00:00
|
|
|
depends=( 'fake' )
|
2015-06-08 09:31:09 +00:00
|
|
|
provides=( 'xdg-utils' )
|
|
|
|
conflicts=( 'xdg-utils' )
|
|
|
|
|
|
|
|
cd "sx-open-${pkgver}"
|
|
|
|
|
|
|
|
mkdir -pm755 "$pkgdir/usr/bin"
|
|
|
|
ln -s sx-open "$pkgdir/usr/bin/xdg-open"
|
2018-08-01 16:32:01 +00:00
|
|
|
|
|
|
|
for x in "${_xdg_utils_shim[@]}"; do
|
2018-08-01 16:45:26 +00:00
|
|
|
ln -s fake "$pkgdir/usr/bin/$x"
|
2018-08-01 16:32:01 +00:00
|
|
|
done
|
2015-06-08 09:31:09 +00:00
|
|
|
}
|
|
|
|
|
2018-08-02 09:53:49 +00:00
|
|
|
sha1sums=('ba082754f5ba0e80c39fe7fad200ce7c8fed8d79')
|