diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..642f6331a5b5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: yjun <jerrysteve1101@gmail.com> + +pkgname=musicfox +pkgver=1.2.0 +pkgrel=1 +pkgdesc="netease cloud music terminal client written in Dart." +arch=('x86_64') +url="https://github.com/AlanAlbert/musicfox" +license=('MIT') +depends=('mpg123' + 'libnotify') +makedepends=('dart') +provides=("${pkgname}-bin") +conflicts=("${pkgname}-bin") +options=('!strip') +source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/AlanAlbert/musicfox/archive/${pkgver}.tar.gz") +sha256sums=('be84b4db8841f9b03e86a70b9000c7a1fa8db417641e460f6d810b0959bc0fd5') + +prepare() { + cd ${pkgname}-${pkgver} + + dart pub get +} + +build() { + mkdir -p build + + dart compile exe -o build/${pkgname} ${pkgname}-${pkgver}/bin/main.dart +} + +package() { + install -Dm755 build/${pkgname} -t ${pkgdir}/usr/bin + install -Dm644 ${pkgname}-${pkgver}/LICENSE -t ${pkgdir}/usr/share/licenses/${pkgname} +} + +# vim: set sw=2 ts=2 et: |