35 lines
824 B
Bash
35 lines
824 B
Bash
# Maintainer: Jack L. Frost <fbt@fleshless.org>
|
|
|
|
pkgbase='sx-utils'
|
|
pkgname=( 'sx-utils' 'sx-utils-xdg-compat' )
|
|
pkgver='1.6.0'
|
|
pkgrel='1'
|
|
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' )
|
|
replaces=( 'sx-open' )
|
|
|
|
source=( "https://git.fleshless.org/u/fbt/sx-open/snapshot/sx-open-${pkgver}.tar.gz" )
|
|
|
|
package_sx-utils() {
|
|
optdepends=( 'sx-utils-xdg-compat: symbolic links for xdg -> sx' )
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
install -Dm755 sx-open "$pkgdir/usr/bin/sx-open"
|
|
}
|
|
|
|
package_sx-utils-xdg-compat() {
|
|
provides=( 'xdg-utils' )
|
|
conflicts=( 'xdg-utils' )
|
|
|
|
cd "sx-open-${pkgver}"
|
|
|
|
mkdir -pm755 "$pkgdir/usr/bin"
|
|
ln -s sx-open "$pkgdir/usr/bin/xdg-open"
|
|
}
|
|
|
|
sha1sums=('0cf8f579f830bb96024d243465f9e7146f21e403')
|