diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a8bf70d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,71 @@ +kind: pipeline +type: docker +name: default + +trigger: + event: + - tag + +concurrency: + limit: 1 + +steps: + - name: checkout submodule + image: alpine/git + commands: + - git submodule update --init --recursive + - name: checkout tag + image: alpine/git + commands: + - cd exa + - git fetch --all --tags + - git checkout tags/${DRONE_TAG} + - name: cargo build + image: rust:latest + commands: + - cd exa + - cargo build --release --target x86_64-unknown-linux-gnu + - cd target/x86_64-unknown-linux-gnu/release + - name: verify + image: rust:latest + commands: + - exa/target/x86_64-unknown-linux-gnu/release/exa --long --icons + - name: build slackware package + image: vbatts/slackware:14.2 + commands: + - mkdir -p dist/usr/sbin + - cp exa/target/x86_64-unknown-linux-gnu/release/exa ./dist/usr/sbin/exa + - cp -R ./usr ./dist + - chmod +x ./dist/usr/sbin/exa + - cd dist + - makepkg -l y -c y ../exa-${DRONE_TAG}.txz + - name: prepare release + image: vbatts/slackware:14.2 + commands: + - echo "exa ${DRONE_TAG} - built@$(date '+%FT%TZ') [Drone ${DRONE_SYSTEM_VERSION}]" > ./release_note + - cat ./release_note + - name: publish release + image: plugins/gitea-release + settings: + api_key: + from_secret: GITEA_KEY + base_url: https://git.panaetius.co.uk + files: + - ./exa-${DRONE_TAG}.txz + checksum: + - md5 + title: ${DRONE_TAG} + note: ./release_note + file_exists: "skip" + when: + event: tag + - name: slack + image: plugins/slack + settings: + webhook: + from_secret: BUILD_STATUS_SLACK_WEBHOOK + username: drone + when: + status: + - "success" + - "failure" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd5106f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_STORE diff --git a/exa.plg b/exa.plg new file mode 100644 index 0000000..7984d4c --- /dev/null +++ b/exa.plg @@ -0,0 +1,59 @@ + + + + + + + + + + + +]> + + + + + +###2022-05-05 +- Initial release - exa v0.10.1 + + + + + +rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null | grep -v '&version;') + + + + +&releaseURL; +&md5; + + + + +**exa** + +exa is a modern replacement for the venerable file-listing command-line program ls that ships with Unix and Linux operating systems, giving it more features and better defaults. It uses colours to distinguish file types and metadata. It knows about symlinks, extended attributes, and Git. And it’s small, fast, and just one single binary. + +By deliberately making some decisions differently, exa attempts to be a more featureful, more user-friendly version of ls. For more information, see [exa’s website](https://the.exa.website/). + + + + + +echo "*** Removing exa ***" + +# Remove plugin related files +removepkg &name;-&version; + +rm -rf /usr/local/emhttp/plugins/&name; +rm -rf &plugin; + +echo +echo "*** Successfully removed exa ***" + + + diff --git a/usr/local/emhttp/plugins/exa/images/exa.png b/usr/local/emhttp/plugins/exa/images/exa.png new file mode 100644 index 0000000..e6c348e Binary files /dev/null and b/usr/local/emhttp/plugins/exa/images/exa.png differ